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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Create a Approval Request from Code

(1) ShareShare
ReportReport
Posted on by 2
I am working with Business Central Online, in AL.
 
We have an integration that creates sales orders in BC.
 
When the order is created, the code is to make an approval request. I trigger this through an API request after the order and all items have been added.
 
 [ServiceEnabled]
    [Scope('Cloud')]
    procedure CreateApprovalRequest()
    var
        ApprovalsMgmt: Codeunit "Approvals Mgmt.";
    begin
        if ApprovalsMgmt.CheckSalesApprovalPossible(Rec) then
            ApprovalsMgmt.OnSendSalesDocForApproval(Rec);
    end;
The issue is we are using an integration account, not a real user, and the integration account is not in the approval user setup, so it is failing.
 
Is there a way around this? Another approach I can take to try and automate the creation of the approval request?
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 156

#2
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans