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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / 3 approval flows on 1 ...
Power Automate
Answered

3 approval flows on 1 Business Central Sales Order in Power automate

(0) ShareShare
ReportReport
Posted on by 27

Dear Community members,

 

Currently I am working on an approval flow containing three approval flows in 1:

 

Check 1: Balance of the customer does not exceed the Credit Limit

Check 2: Balance due of the customer is equal to 0

Check 3: Profit margin is equal or exceeds the profit margin on the customer card (Custom field)

 

Trigger is the 'Send Approval Request' button on the 'Open' (status) Sales Order;

 

Maassimaassimo_0-1678356901161.png

 

This triggers the workflow of Power Automate. This flow also prevents 'Open' Sales Orders to be Released without going through the approval flow first.

 

Maassimaassimo_1-1678356958733.png

 

The design of the flow in Power Automate is currently as follows

Maassimaassimo_2-1678357002348.png

 

The Workflow once triggered can be completed in Power Automate(!) and if approval is needed the person will get a notification in Teams, Outlook and Power Automate app + if approval is given the flow will be completed in the flow page of Power Automate (not in Business Central).

 

However, the status of the Sales Order never changes from 'Pending Approval' to 'Released' even if every check passed the condition. This requirement is critical and the reason why we chose Power Automate as the workflows in Business Central were coming up short for multiple checks on Sales Orders with the same criteria.

 

My question is; How can I make sure that after approval or exit of the approval flow due to the fact it passed the condition the Sales Order status will be changed from 'Pending Approval' to 'Released'.

 

I already tried the following approach if approval is not needed, but this does not work

 

Maassimaassimo_3-1678357397424.png

as I get following error

 

Maassimaassimo_4-1678357788264.png

{
"status": 400,
"message": "ErrorCode: Application_DialogException The workflow step instance id {00000000-0000-0000-0000-000000000000} was not found. CorrelationId: *ID-number*d52d6.\r\nclientRequestId: *ID-number*43001",
"error": {
"message": "ErrorCode: Application_DialogException The workflow step instance id {00000000-0000-0000-0000-000000000000} was not found. CorrelationId: *ID-number*d52d6."
},
"source": "api.businesscentral.dynamics.com",
"errors": []
}

 

Same problem if approval is needed;

 

Maassimaassimo_5-1678357868255.png

 

In conclusion I would like to know how I can change the status of my sales order using the Workflow responses.

 

Thank you very much in advance.

Categories:
I have the same question (0)
  • Maassimaassimo Profile Picture
    27 on at

    UPDATE:

     

    By Adding following steps you can manage the responses and ensure that on approval flow response "Approve" - it releases the sales order document

     

    Maassimaassimo_0-1678366379601.png

     

    However, the problem remains, once the number of conditions which need approval is 2 or more

    (for example Credit Limit is exceeded AND Balance Due is > 0)

    1 positive (approve) approval response releases the Sales Order Document even if the other approval remains unanswered

    1 negative (decline) approval response reopens the Sales Order Document even if the other approval remains unanswered

    How can I ensure that the Sales Order Document remains in status "Pending Approval" as long as all conditions have not been met? - in other words

    Check 1 condition: was either approved or could be exited due to no check needed

    AND

    Check 2 condition: was either approved or could be exited due to no check needed

    AND

    Check 3 condition: was either approved or could be exited due to no check needed

  • Verified answer
    Maassimaassimo Profile Picture
    27 on at

    Changing the approval flow from 'Approve/Reject - First to respond' to 'Custom Responses - Wait for one response' did the trick.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard