How to set all the approvers as parm1 in flow designer???
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2024 01:18 AM
I was trying to fire event from flow designer and the email should be sent to all the approvers(approved/no longer required)
I have configured as below, but I was not getting the approvers sys_id in parm1 while firing the event.
Error:
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2024 03:51 AM
Hello @Admin7267
Please refer to the below script:
gs.log("RITM SYS ID is " + fd_data.trigger.current.sys_id);
var approvers = [];
var sysApprover = new GlideRecord("sysapproval_approver");
sysApprover.addQuery("document_id", fd_data.trigger.current.sys_id);
sysApprover.query();
while(sysApprover.next()) {
approvers.push(sysApprover.approver.toString());
}
return approvers;
Hope this helps!
"If you found my answer helpful, please like and mark it as the "accepted solution". It helps others find the solution more easily and supports the community!"
Thank You
Juhi Poddar