Hi Team, i the catalog item form level "select role" variable witch is "list collector  table(u_appl

AA6
Tera Contributor

Hi Team, i the catalog item form level "select role" variable witch is "list collector  table(u_application_role ) table based on select records need to trigger approvals with record assignment group. after approving  all the approval need trigger two catalog tasks .Please help on this 

5 REPLIES 5

kalpanashar
Tera Contributor

 

  • List Collector Variable

    • Create a list collector variable on your catalog item that references the u_application_role table.

    • Ensure it allows multiple selections.

  • Trigger Approvals Based on Selected Roles

    • Use Flow Designer with a For Each loop to iterate through selected roles.

    • For each role, fetch its associated assignment group and trigger an approval action.

    • You can store assignment group info in a related table or use a reference field in u_application_role.

  • Post-Approval Task Creation

    • After each approval, use the flow to generate two catalog tasks.

    • Assign these tasks to the relevant assignment group linked to the approved role.

  • Handling Multiple Roles

    • Ensure your flow handles multiple roles independently.

    • Use subflows or branching logic to avoid overwriting task data when looping through roles.

 

Ankur Bawiskar
Tera Patron
Tera Patron

@AA6 

so what did you start with and where are you stuck?

You can use a flow variable and get the approval group and then use it in "Ask for Approval" flow action.

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 thank you for your response i need to add script step for getting records from u_application_role.LIST table then it will store sys_id s of all records based on records it will trigger approval.

GlideFather
Tera Patron

Hi @AA6,

 

for something similar, just not roles but locations, I have built approval decision table.

 

In the Flow Designer (aka Workflow Studio) you can create a a flow variable and in that variable you will catch the value from the catalog item and based on that you can create records as per your need.

 

Do some pilot and let me know if you will need help

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */