- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2024 10:53 AM - edited 01-21-2024 10:56 AM
Hi All,
Need help!!
I have a requirement, How to send multiple group approvals depend upon the roles selected from the variable "Roles need" The type of this variable is list collector and may be select one or more roles by using Flow Designer.
Ex: If user selected 3 roles then have to send group approvals for 3 different groups.
Thanks in advance!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2024 11:05 AM
Hi @Khaja Shaik
You can write the scripted approval rule as below in one of flow variables-
ApprovesRejectsAnyG[09745cc9c3302200e7c7d44d81d3ae6f]&AnyG[b8ef24616fc331003b3c498f5d3ee434]
and set this as below
| C |
If the provided solution meets your needs, kindly consider marking it as helpful and accepting it as the solution. This helps others who may have similar questions. |
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 12:09 PM
Hi Saurabh,
Could you pls explain more. i have the same issue and when you say script, could you explain if you mean a script action?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 09:08 AM
Hi @Saurabh Gupta ,
Thanks for your answer, it answered my question.
Please find the below script I used in Rule set of "Ask for Approval" action to fulfill my requirement.
var grp1 = "64263a0547e3b914952bfc6c736yh6f8"; //sys id of Group 1
var grp2 = "93263a0547e3b914952bfc6c736yh6f8"; //sys id of Group 2
var grp3 = "89263a0547e3b914952bfc6c736yh6f8"; //sys id of Group 3
var grp4 = "47263a0547e3b914952bfc6c736yh6f8"; //sys id of Group 4
var roles = fd_data.trigger.request_item.variables.roles_needed;
if(roles=='role1'){
return "ApprovesRejectsAnyG["+grp1+"]";
}
else if(roles=='role2'){
return "ApprovesRejectsAnyG["+grp2+"]";
}
else if(roles=='role3'){
return "ApprovesRejectsAnyG["+grp3+"]";
}
else if(roles=='role4'){
return "ApprovesRejectsAnyG["+grp4+"]";
}
