regarding email notifications
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
I want to fetch all the approvers from the flow and add it in email script and that script is being used in a notification.So when the notification triggers all the approvers name should be displayed related to that request.
how can i write the script for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @shreya_3009 ,
There is a similar article in the community you can reference to :
*******************************************************************************************
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hello @shreya_3009 ,
You can use below script step in flow designer
(function execute(inputs, outputs) {
var approverList = [];
var gr = new GlideRecord('sysapproval_approver');
gr.addQuery('sysapproval', inputs.requestSysId); // Pass the request Sys ID as input
gr.query();
while (gr.next()) {
if (gr.approver.name) {
approverList.push(gr.approver.name);
}
}
outputs.approvers = approverList.join(', ');
})(inputs, outputs);
"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"
Thank You,
Sujit Jadhav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12m ago
in the approval set i have 3 levels of approval.how can i use that in code to fetch all of them