web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Can I archive any extension Tables?

(5) ShareShare
ReportReport
Posted on by 1,185
Hi experts!


I would like to archive data of many new tables. Can I modify existing Data Archive extension module below?
I have the same question (0)
  • Suggested answer
    Sumit Singh Profile Picture
    10,079 on at
     Can You Modify the Existing Data Archive Extension?
    Direct modification of Microsoft-published extensions is not allowed. These are sealed extensions, meaning:
    • You cannot change their internal logic or objects directly.
    • You cannot add new tables to their archiving scope from within the extension itself.
    Recommended Approach: Extend via a Custom Extension
    You can build a custom extension that:
    1. Subscribes to the Data Archive framework (if it exposes events or interfaces).
    2. Implements your own archiving logic for new tables.
    3. Uses similar patterns (e.g., archiving to shadow tables, logging, and deletion) as the base extension.
    Steps to Proceed
    1. Review the Data Archive Extension Code
    • Use AL Explorer or Symbol References to inspect if the extension exposes:
      • Events (e.g., OnBeforeArchive, OnAfterArchive)
      • Interfaces or codeunits that can be extended
    2. Create a Custom Extension
    • Define your own archiving logic for new tables.
    • Use Job Queue or Scheduled Tasks to automate archiving.
    • Optionally, mimic the UI and logging structure of the base extension.
    3. Integrate with Existing Archive UI (Optional)
    • If the base extension allows, you can link your custom logic to its UI.
    • Otherwise, create a parallel UI for your custom archive module.
    Deep Insight
    The Data Archive extension is designed to be modular and safe, which is why Microsoft restricts direct edits. However, its architecture often allows event-driven extensibility, making it possible to build on top of it without breaking upgrade paths.

    Note: This response was created in collaboration with Microsoft Copilot to ensure clarity and completeness. I hope it helps to some extent.
    Mark the Answer as Verified if this is Helpful.
     
  • Verified answer
    YUN ZHU Profile Picture
    95,329 Super User 2025 Season 2 on at
    This app is extensible. Please add the Dependencies property to your app.json file, download its symbol file, and try again.
     
    PS: Business Central 2025 wave 1 (BC26): New VS Code actions from the Web Client (Generate launch configurations and Get selected as dependencies on the Extension Management)
     
    Thanks.
    ZHU
     
  • Suggested answer
    DAnny3211 Profile Picture
    11,397 on at

    Hi,

    Yes, you can extend the Data Archive extension module to include additional tables, but it depends on how the extension is designed and whether it exposes extensibility points.

    Here are a few things to consider:

    1. Check for Events or Interfaces: If the extension publishes events or uses interfaces, you can subscribe to those and add logic to archive your custom or additional tables.

    2. Create a Dependent Extension: If direct modification isn’t possible, you can create a new extension that depends on the Data Archive module and adds support for your tables.

    3. Custom Archiving Logic: If the existing module doesn’t support extensibility, you may need to replicate its logic in a custom extension tailored to your tables.

    4. Review Licensing and Permissions: Ensure that the extension allows modifications or extensions under its license terms.

    If you need help identifying extensibility points in the module, feel free to share more details or check the AL code if available.

    Hope this helps!
    Please mark this response as helpful if it answered your question.

    Best regards!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans