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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Automate Approval Delegations

(1) ShareShare
ReportReport
Posted on by 6
We are trying to produce AL code that if a user is on leave, the system would automatically send/delegate their approvals onto their substitute approver.

We have created a new table holding the User ID and their leave start/end date. Our code first checks if the current date is between their start/end date.



It is then supposed to update the approver ID in the approval entry table to the substitute that is in the User Setup table, however this is not happening.



We have created the job queue entry for the code unit and it is running successfully in the background.

Are you able to see what it is we are doing wrong or point us in a direction that might help solve this issue.

Do you know are you even able to edit the approval entry table or is this a Microsoft protected table?

Thanks in advance for your help/guidance.
  • Suggested answer
    YUN ZHU Profile Picture
    103,292 Super User 2026 Season 2 on at
    Hi, hope the following helps.
    Dynamics 365 Business Central: Can we insert/modify/delete posted data (Posted Documents & Posted Entries) via AL???
     
    Thanks
    ZHU

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
11manish Profile Picture

11manish 9 Super User 2026 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 1 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans