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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2024 04:12 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2024 04:21 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2024 04:30 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2024 04:50 AM
If the variable value is 'Accounts' where is the definition of the group (sys_id) that is the 'accounts team'?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2024 04:57 AM
that's avilable in th groups table