Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Approval generation for users in multiple approval groups

LJ_23
Tera Contributor
Issue: I am investigating an issue with Management approval generation where a user can belong to multiple groups that are all configured as required approver groups. During approval creation, only one user approval record is generated, and approving it effectively approves on behalf of all groups the user belongs to.
 
The expected behaviour is that a separate approval record is created for each unique group so the user must provide an approval decision for each function they represent.
 
Has anyone encountered similar approval deduplication logic in Change approvals, and what is the best approach to ensure approvals are only suppressed when both the user and group are identical?  Please see attached screenshots
LJ_23_0-1788794041968.pngLJ_23_1-1788794111876.pngLJ_23_2-1788794161776.pngLJ_23_3-1788794201656.png

It is important to note I have explored the flow, subflow actions and script in relation to this and there is no suppression of duplicates mentioned anywhere.

Please advise further?

 

2 REPLIES 2

Deepak Shaerma
Mega Sage

Hi @LJ_23 

 

check the property 

glide.workflow.approval.suppress_duplicates 

If set to ⁠true⁠, change it to ⁠false⁠ , 

 

option 2: 

Create a Subflow that accepts a Change Record and an Assignment Group as inputs.

2. Inside the Subflow, call the Ask for Approval action for that single group.

3. Crucial: In the Ask for Approval action properties, leave the Approval Field blank (do not select ⁠Change Request.Approval⁠).

4. In your parent flow, use Do the following in parallel (or a ⁠For Each⁠ loop running independently) to spawn this subflow for each group.

there is no existing property under the name mentioned in option one 

 

in regards to option two there is an existing subflow see below would you recommend calling the action within this flow?

LJ_23_0-1788795786950.png

LJ_23_1-1788795852105.png

thanks deepak