› Dynamics NAV › Approval Workflow using Workflow User group in Microsoft Dynamics NAV

Approval Workflow using Workflow User group in Microsoft Dynamics NAV

 Chris D'Silva   Leave a comment

Introduction:

What is Workflow User group?
Workflow user group is a group of users under one group title in Workflows with the users’ number in a process sequence such as an approver chain.

To define an approval request to be not approved until multiple approvers in a approval chain have approved it, set up approvers with incremental sequence number.Here the approval request is sent to the user with highest sequence number i.e. 1. This user will have to approve the request then an approval will be sent to the next user with sequence number 2 and so on.

To define approval request is not approved until multiple equal approvers have approved it regardless of the hierarchy assign same sequence number to the users.Here the approval request is sent to all users in the group at the same time.

Here, both the approval requester and approver must be set up in the Approval User Setup.

This blog provides a step wise procedure how to create approval workflow using workflow user group.

Pre-requisites:

Microsoft Dynamics NAV 2017

Steps:

I’ll explain workflow user group using a scenario.

Scenario: 

A sales department has a group of two sales managers. An approval request must be sent to the sales managers if the sales order amount is greater than 4000 and even if one of the sales manager approves the request, the document should be released.
1. Create a workflow user group

  • Navigate to Workflow User group in the search bar in Dynamics NAV and click on New.
  • Enter the code and description for it. Insert the approver users with sequence number as 1

2. Create a new Sales Order Workflow

  • Open workflow using the path CRONUS International Ltd./Departments/Administration/Application Setup/Workflow/Workflows
  • Click on New Workflow from Template button from the ribbon. click on the Sales Documents category and select Sales order workflow
  • Here the Sales Order Approval Workflow opens. Click on the first event condition and add a condition on amount > 4000
  • The response of the first event sets the Sales order status to Pending approval, creates and sends the approval request to the approvers.

3. Set the Approver Type to Workflow User group

  •  We are using the approval type as workflow user group hence, we need to specify this group in the workflow.
  • Now click on the assist edit button of the first response and click on the third response line. By default the approver type is Salesperson/Purchaser
  • Select the Workflow User group from the Approver Type drop down and select the workflow user group code.
  • Now the approval request will be directly sent to the Workflow User group with code SALES MANAGER

4. Set the sales order workflow condition

  • Click on the second event ‘An approval request is approved’. Here we observe that the condition reads Pending approval :0 which means that when all the approver users approve the request i.e. when the the count of the pending approval is 0 then according to the response, release the document.
  • Now we want even if one of the approver users approves the request, the sales order document must be released. we’ll have to change the condition to Pending approval :1
  • Here when the approval request is sent to both the sales managers, the pending approval count is 2. Now when one of the sales manager approves the sales document the count decreases to pending approval:1hence when the one of the sales manager approves the sales order document the sales order is Released
  • Finally enable the workflow

5. Send an sales order approval request

  • Navigate to sales order and create a sales order greater than 4000 and click on send approval request.
  • Observer the status of the sales document changes to Pending Approval.
  • 10

  • Login Microsoft Dynamics NAV with the sales manager user credentials and navigate to ‘Request to Approve’
  • To view the sales order click on Open Record
  • To approve the order click on Approve. This will Release the sales order document.
  • To reject the order click on Reject. This will change the status to Open.
  • Comments can be added by clicking on comments.
  • The sales manager approves it and the document is approved thus the status changes to Released

Conclusion:

To summarize everything, create a sales order workflow from the template. Create a workflow user group and assign sequence number to 1. Set the condition of amount > 4000 and Pending approval to 1. Select approver type as Workflow user group and select the workflow user group code. Finally enable the workflow.


Liked it? Share it.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.