Assign catalog task to the multiple assignment groups selected on catalog item variable

Ankita Gupte
Kilo Sage

Hello Experts,

 

I have list collector variable (choose_assgn_grp) on catalog item form referencing to Groups table, I want to trigger catalog tasks to any group selected on catalog item variable while raising a request. If one group is selected then one catalog task should tigger to that particular assignment group. If multiple groups are selected that multiple catalog task should trigger to those assignment groups.

 

Please advice how can I achieve this.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Ankita Gupte 

check my blog on how to create multiple catalog tasks

Using list collector in Flow Designer 'For Each loop' by converting string into array of string 

you can check if only 1 group is selected then create only 1 task

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

View solution in original post

5 REPLIES 5

kalpanashar
Tera Contributor

To trigger catalog tasks dynamically based on the groups selected in a list collector variable (choose_assgn_grp) referencing the Groups table, you can use Flow Designer in ServiceNow. Start by creating a flow that activates when a catalog request is submitted. Within this flow, use a "For Each" loop to iterate through the groups chosen in the list collector. For each selected group, add a "Create Catalog Task" action and set the assignment group field to the current group in the loop. This setup ensures that if one group is selected, one task is generated for that group, and if multiple groups are selected, multiple tasks are created each assigned appropriately. This approach automates task generation and ensures accurate group-level assignment without manual intervention.