n service catalog based on variable value approval needs to be triggred for different groups

Community Alums
Not applicable

In service catalog based on variable value approval needs to be triggred for different groups.There are 8 choices in the variable for each value Approval goes to a specific group in workflow

7 REPLIES 7

Brad Bowman
Kilo Patron
Kilo Patron

If the variable is a reference to the group table - so the requestor is selecting a group, or a select box with choices for groups where the value of each choice is a group sys_id, then in the Approval - Group workflow activity, check the Advanced box.  In the Script, you just need something like

answer.push(current.variables.variable_name);

If there is some other mapping to determine the group (sys_id) based on the variable value, then include that in the script before pushing to the answer array.

Community Alums
Not applicable

No it's a choice field of modules if module is Accounts it should go to accounts team, if module is payment it should go to payment group etc

If the variable value is 'Accounts' where is the definition of the group (sys_id) that is the 'accounts team'?

Community Alums
Not applicable

that's avilable in th groups table