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

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.

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,260 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,515 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,373

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans