flow designer approval rules scripts
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2025 12:58 AM
I am trying to set requested for variable users manager.
but its not working.
var manager = fd_data.trigger.request_item.variables.requested_for.u_it_manager.toString();
var answer = [];
gs.addInfoMessage('Manager'+manager);
var gr = new GlideRecord('sys_user_grmember');
gr.addQuery('user', manager);
gr.query();
if (gr.next()) {
return manager;
}
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2025 12:25 AM
HI @shruti2bhosale
You can achieve this without script. PFB. Could you share your full requirement?
PFB article on Scripted Approvals in Flow Designer with Flow Variables
Regards,
Siva
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2025 11:16 AM
Hi Siva The approval should go to requested for manager and if manager is not available/empty then it should go to IT Manager group.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2025 06:03 PM