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...
Suggested answer

Approval Process Flow Modification

(0) ShareShare
ReportReport
Posted on by 90

Hello We have an approval flow that automatically releases/approves sales orders based on set criteria.
I would like to be able to add a line to this code that would prevent orders with certain items from being released automatically (e.g. an item in pre-order status, or that is out of stock but will be back in stock in a couple of days).
How can we add something to the order that would allow us to exclude approving orders with these items?
Is there a way to set an item to pre-order status (with a later release date) and hold orders with that item until it comes in, or splits the order and only sends the lines that can be filled immediately?
Please let me know how to best handle this.

Thank you.

  • Suggested answer
    Nitin Verma Profile Picture
    21,567 Moderator on at
    RE: Approval Process Flow Modification

    Hi Seif naguib ,

    Are you using standard Workflow for Sales order?

    So in that case there is a little customization is required, you can direct with your developer, by asking them define a boolean or Option type field on sales header, and On OnAfterGetrecord of the Sales Order page check as soon as you entered the Item on sales line or sub form it set that field value to something, and then you can put that field on your workflow filters before using the Workflow response as Release the order.

    Thanks.

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans