How to set all the approvers as parm1 in flow designer???

Admin7267
Kilo Sage

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.

 

Admin7267_0-1732093891989.png

 

Error: 

Admin7267_1-1732094261060.png

 

 

5 REPLIES 5

Juhi Poddar
Kilo Patron

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