Parallel Group Approvals from List Collector in Flow Designer Not Working

LokeshwarRV
Tera Contributor

Hi everyone,

I'm working on a Service Catalog flow in Flow Designer triggered by a Requested Item (sc_req_item). Here i want to get the parallel approavls from the approval groups .I have a List Collector variable called related_services that stores multiple related services (cmdb_ci_service records). Each service has a reference to an approval group in the change_control field.

In my flow, I use a script to collect all the approval group sys_ids from the related services and pass them to the "Ask for Approval" action. Here's the script I'm using:

iam using  a flow variable name ApprovalList with script
var groups = [];
var relatedLists = fd_data._1__get_catalog_variables.related_services;
var serviceGr = new GlideRecord('cmdb_ci_service');
serviceGr.addQuery('sys_id', 'IN', relatedLists);
serviceGr.query();

while (serviceGr.next()) {
    var groupId = serviceGr.getValue('change_control'); // Get sys_id as string
    if (groups.indexOf(groupId) < 0) {
        groups.push(groupId);
    }
}

return groups;

and in Ask for Approval i am setting this
LokeshwarRV_0-1759728354828.png
LokeshwarRV_0-1759728689061.png

 

and i my flow execution i am getting as approval as skipped
Note:Here i want to sent the approval to approval groups parallel

 

Help me to overcome this issue
Thanks in Advance
 
 

 

 
 
 
 
 
 
8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

@LokeshwarRV 

it's somewhat challenging when you use parallel approvals in flow

see these links for approach

Parallel Approvals in Flow Designer 

Parallel Approvals in Flow Designer 

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 @Ankur Bawiskar 

I’m now receiving the group approvals as expected. However, I’ve noticed an issue:
When any one person from any group approves, the system is marking all groups as "no longer required."

This is problematic because we’re aiming for parallel approvals, where at least one person from each group must approve before the process can move forward.

Could you please help check the logic or configuration? Ideally, the workflow should wait for one approval per group, not just any single approval across all groups.

Thanks in advance!

@LokeshwarRV 

when you use "Do the following in parallel" flow logic and use multiple "Ask for Approval" then Decision from 1st approval is being applied to all the approvals

the below KB talks about the issue you are facing and a possible workaround

Using Parallel Approvals in Flow Designer is only respecting the Approval Decision of the First Appr...

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 @Ankur Bawiskar 
Thanks for the response
but in my case the groups are dynamic we are unable to tell how many
some times it might be 1 or sometimes it be 4