Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Workflows

(0) ShareShare
ReportReport
Posted on by 389

Hi,

We have a workflow to check if there are NEGATIVE LINES in a sales order and this works great. If the result is NO then the user must press the RELEASE button, if the result is YES then it goes through the workflow process. However, how can we have all Sales Orders/Quotes always force the user to press the SEND APPROVAL REQUEST even if there are no NEGATIVE LINES?

*This post is locked for comments

  • Suggested answer
    Tina Menezes Profile Picture
    Tina Menezes 2,580 on at
    RE: Workflows

    Hi,

    You have to go to the actions page of your sales order and on the release action write the following code:

    If SalesHeader.Status <> Sales header. Status::Released then

    ERROR( Sales order has to be sent for approval);

    This will force the user to send for approval if document is not approved.

    Your workflow is already checking for negative lines so you do not need to check again if negative lines are present or not.

    Once sent for approval and approved the status will change to Released so it will not give error message again.

  • Suggested answer
    CDsilva Profile Picture
    CDsilva 4,184 on at
    RE: Workflows

    Hi CILGroup,

    Create a boolean variable in the page named Result.You need to write a code to check for negative lines. if negatives lines is found then set RESULT =TRUE and display a message.

    IF Result=TRUE then

    MESSAGE('Click on the Send approval button')

    ELSE

    Status=Status::Released

    MODIFY(TRUE);

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans