Flow designer script for approvals
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2025 01:00 AM
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2025 01:11 AM
Why don't you just set the group?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2025 01:15 AM
Hi @Alon Grod ,
Please review the screenshot for approval script-
and here is the code-
if(fd_data.trigger.request_item.cat_item.u_require_manager_approval){
var requestedfor=fd_data._1__get_catalog_variables.requested_for;
if(requestedfor){
if(fd_data._1__get_catalog_variables.requested_for.manager.active){
return "ApprovesRejectsAnyU["+fd_data._1__get_catalog_variables.requested_for.manager.sys_id+"]";
}
}else if(fd_data.trigger.request_item.requested_for.manager.active){
return "ApprovesRejectsAnyU["+fd_data.trigger.request_item.requested_for.manager.sys_id+"]";
}
if your group is fixed or static you can directly select using the group picker
If you found my response helpful, please mark it as helpful and accept it as the solution.
Thank you
Nawal Singh
Thank you
Nawal Singh
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2025 01:16 AM
Hi @Alon Grod
Declare the Variable before the if statement block.
var gpz= '';
if(gr.next())
{
gpz= gr.sys_id;
}
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2025 01:30 AM
@Voona Rohila Still
not working