Hi Team, Based on Role selection we have creating group approvals whenever approve all the group app

AA6
Tera Contributor

Hi Team, Based on Role selection we have creating group approvals whenever approve all the group approvals then RITM approval Approved . then catalog tasks created.

 

 For example we have 4 group approvals if any group is approved then RITM approval is approved. then catalog tasks need to create

6 REPLIES 6

Rafael Batistot
Kilo Patron

Hi @AA6 

 

Kindly send more information about what you need?

Whenever the RITM is triggered, I have a flow design in place. There is a field that allows multiple role selections. Based on the selected roles, we create sysapproval_group records for the RITM. I had previously written a 'Wait for Condition' on all the sysapproval_groups so that once all approvals are completed, all SC tasks would be created. However, now I want to change this behavior. Instead of waiting for all approvals, I want to create an SC task as soon as any one approval is approved.

@AA6 

so what change did you do and what's not working?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @AA6 ,

 

To implement the behavior where the SC task is created as soon as any one of the selected sysapproval_group approvals is approved (instead of waiting for all approvals), you need to adjust your flow logic accordingly.

 

Locate the "wait for condition" action in flow.

  • Instead of waiting for all approvals, modify the condition to wait until any approval’s state changes to Approved.

  • For example, if your condition expression then change it to 'any one approves/for any one record. and use the "Any" aggregator (instead of "All").  Set condition logic to "If any record matches" to proceed.

Let me know if you need other information

 

Thanks,
Bhimashankar H

 

-------------------------------------------------------------------------------------------------
If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. Thanks!