Comments on approval email ?

Andrew Pickles
Tera Expert

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

5 REPLIES 5

AnubhavRitolia
Mega Sage
Mega Sage

Hi @Andrew Pickles 

 

You use advance script on Approval activity to set the value of Approval Description from variable value.

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

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)

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 ?

Hi @Andrew Pickles 

 

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.

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023