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

How to fill Last archived date of a Sales Order Archive (field 3999)

(2) ShareShare
ReportReport
Posted on by 54
Hi Community members,
 
I have implemented automatic archiving of orders (via Sales & Receivables Setup, TAB Archiving). 
I would like to implement a retention policy on table 5107 (Sales Header Archive). I noticed that this retention policy is based on field 3999 (Last Archived Date):
Unfortunately this field is not automatically filled when archiving sales orders. This fields remains empty in all situations which I have seen so far:
 
The result is that the retention policy does not work. 
 
It is by deafult not allowed to change the Date Field No. of this specific retention policy. This field is set by Microsoft. 
 
Does anyone know what I need to do to correctly fill the field  'Last Archived Date' of the Sales Header Archive records? Preferably without any customizations. I assume this should work somehow out-of-the-box.
 
Thank you for your input on this topic!
 
Best regards,
Lianne Elzenga
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at
    Hi, This is a flowfield, not an actual field, so it cannot be entered.
    Its setting formula are as follows
     
    Thanks
    ZHU
     
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,448 Super User 2025 Season 2 on at
  • Verified answer
    Lianne Elzenga Profile Picture
    54 on at
    Thank all for your input.
    The solution was actually simple: be patient ;-)
     
    The Last Archived Date is a flow field (like indicated by ZHU, thank you!).
     
     
    I have set the retention policy to 2 days. After those 2 days the records were correctly deleted. 
     
    Case closed. 

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 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans