Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

AL archive documents

(0) ShareShare
ReportReport
Posted on by

Hi All,

How do one archive the documents such that after posting, they disappear from the list to archive?.

Any AL code or insight?

Kindly assist.

  • AL archive documents
     hello @romryan , were you able to find a solution for it ?
  • Suggested answer
    TeddyH Profile Picture
    TeddyH 12,864 Super User 2024 Season 1 on at
    RE: AL archive documents

    If it's a custom table, then you need to do development in AL.

    Create an archive table, on delete trigger, just do TransferFields from the the current table to the archive table.

  • Romryan Profile Picture
    Romryan on at
    RE: AL archive documents

    I need to archive the ones in custom header and lines not the native BC Screens. Is it possible and how can I do it? Does it require AL ?

  • YUN ZHU Profile Picture
    YUN ZHU 75,561 Super User 2024 Season 2 on at
    RE: AL archive documents

    Hi, hope this will help.

    docs.microsoft.com/.../across-how-to-archive-documents

  • Suggested answer
    TeddyH Profile Picture
    TeddyH 12,864 Super User 2024 Season 1 on at
    RE: AL archive documents

    If you look at Sales & Receivables Setup or Purchases & Payables Setup, you will see the field to turn on automatic archive on deletion. You can use that as per standard.

    In terms of AL, you normally do TransferFields between table.

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,622 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans