Please wait
Talk to Expert
Microsoft Dynamics Business central, Microsoft Dynamics NAV

Send and Cancel Approval request for multiple Sales Order in one go!

Send and Cancel Approval request for multiple Sales Order in one go!

In Business Central Standard we are not having functionality of Sending and Cancelling Approval Request for Multiple Documents in single click. So here we have come up with the solution of that.

Approval Status:

This below code Snippet will help you to Send Approval Request for multiple documents.

And this below snippet will help you to Cancel Multiple Approval Requests in single click.

But with this code we have faced the issue of getting confirmation message multiple times While sending approval requests and cancelling approval request.

To remove Confirmation message while sending request:

we’ll follow below process:

Search for “Workflows” in global search and select Sales Order Approval Workflow.

Set the status of Workflow as Disabled and then Click on “Add Record Restriction” as highlighted in the above picture.

Now We need to need to turn off “Show Confirmation Message” toggle.

To remove Confirmation message while Cancelling request:

we’ll follow below process:

Search for “Workflows” in global search and select Sales Order Approval Workflow.

Click on highlighted link as below screenshot.

 

Now select “Show message “The approval request for the record has been canceled.” And Click on Delete Line as below screenshot.

Now enable the workflow again. And it’s done.

Thank you for investing your time to read our blog! We’re passionate about sharing valuable insights to help you navigate the world of Business Central.

If you’re curious about how we can assist you in reaching your goals, don’t hesitate to get in touch. Our dedicated team is ready to provide support every step of the way.

Let’s turn your vision into reality together!


Comments