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

Community site session details

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

Adding custom table to retention policy list page

(0) ShareShare
ReportReport
Posted on by
Greetings!
 
I have a custom table (ID=60100) that the client has asked we add to the retention policy list page (ID=3903).  We have added the table via the Reten. Pol. Allowed Tables codeunit via the AddAllowedTable method but the table does not appear in the list page.  What are we doing wrong?
 
The code snippet is below.  Custom table 60100 is HSCI01Change Log Entry.  We have tried the method call with and without specifying the date field that triggers data retention.
 
var
        bRetVal: boolean;
        oRetentionPolicy: codeunit "Reten. Pol. Allowed Tables";
        oChangeLogEntry: record "HSCI01Change Log Entry";
    begin
        bRetVal := oRetentionPolicy.AddAllowedTable(Database::"HSCI01Change Log Entry", oChangeLogEntry.FieldNo(SystemCreatedAt));
    end;
I have the same question (0)

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,267

#2
Sumit Singh Profile Picture

Sumit Singh 2,098

#3
YUN ZHU Profile Picture

YUN ZHU 1,766 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans