Comments on approval email ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 08:07 AM
Hi All please help with this ..
I have a requested item that triggers a workflow.
In that workflow we trigger an approval request, but in the email that is received by the approver it says "comments :" with no information after that.
I want to populate that with some text from the requested item.
I see in the mail template that it is using sysapproval.description to print these comments, so i am trying to get text from a variable in the requested item, into the sysapproval.description field.
I managed to populate the description in the request by using a script in the workflow and i though that would then also populate the sysapproval.description, but it doesnt.
can someone please tell me how i can either get the description from the request into the approval email, or populate the sysapproval.description field from a script in the workflow ? (same result)
Many thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 10:06 AM
You use advance script on Approval activity to set the value of Approval Description from variable value.
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2022 01:11 AM
Hi thanks so much for that, it sounds like exactly what im looking for.
Could you please give me an example of what that script would look like ?
(im not sure if i would use current.variables or not etc)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2022 01:15 AM
I think the 'advanced' section of the approval activity is just to use a script to decide on approvers isnt it ?
And not to set variables ...
All i can see there is a script to set 'answer' and use that to set the approver.
Or maybe im looking in the wrong place ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2022 01:28 AM
You can use Script to set approval also and also do other scripting. So you can set your approval in Script using 'answer' variable and also to set the value of Approval Description from variable value.
Try it once. If does not works, share the Code you have written.
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023