Email Script for adding reason field in notification body

HemaV
Tera Contributor

Hello, 

I need to add the 'Reason field' in the body below the 'revised rating' for the policy exception approval request OOB notification. I have configured the email scripts and need guidance to add an addition to the email script for 'Reason'. find the script reference and please help with addons. 

 

HemaV_0-1733307041445.png

 

HemaV_1-1733307815809.png

 

 

 

 

 

1 ACCEPTED SOLUTION

revisedRating= peGr.override_risk_rating.getDisplayValue();
template.print(revisedRating);

 

Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand

View solution in original post

3 REPLIES 3

Anand Kumar P
Giga Patron
Giga Patron

Hi @HemaV ,

 

Go to your notification, system notifications > Notifications 

open your notification.

What it will contain section in Message HTML you need to pass email script

${mail_script:your_mail_script_name}  // replace your email script name

Note: Updating OOB notification will be skipped in future upgrades.

 

Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand

HemaV
Tera Contributor

@Anand Kumar P, Thank you for the above information. please guide on email scripts if any additions are required so that the 'reason field' appears below the revised rating in the notification body. 

revisedRating= peGr.override_risk_rating.getDisplayValue();
template.print(revisedRating);

 

Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand