- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 01:18 AM
Hi All,
I want to create a approval flow designer and want to update work notes when approved.
in the work notes I want update like this: {approver}+当インシデントは却下されました。
{approver} is refer to the approver who approved this request.
How can I make this, variables in text.
Thanks a lot.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 01:25 AM
you need to use f(x) inline script and use this.
you can click this icon and write the script
var sysId = fd_data.trigger.current.sys_id;
var gr = new GlideRecord("sysapproval_approver");
gr.addQuery('sysapproval', sysId).addOrCondition('document_id', sysId);
gr.addQuery("state", "approved");
gr.query();
if (gr.next()) {
return gr.approver.name + ' your message here';
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 01:25 AM
you need to use f(x) inline script and use this.
you can click this icon and write the script
var sysId = fd_data.trigger.current.sys_id;
var gr = new GlideRecord("sysapproval_approver");
gr.addQuery('sysapproval', sysId).addOrCondition('document_id', sysId);
gr.addQuery("state", "approved");
gr.query();
if (gr.next()) {
return gr.approver.name + ' your message here';
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 01:28 AM
Hi Ankur,
Thanks you very much.
You support me many times ,
Appreciate~

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 01:26 AM
Hi,
You have to use LookUp Action to get Approval Record related with your ticket and use the data pill to get Approver name from the previous action. If you have only one approver configured then you can dot walk on previous approval action to get approver name.
Please let us know your current configuration and how many approvals you have?
Thanks
Anil Lande