Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to get previous value in Email Notification Message HTML body

AzeemkhanM
Giga Contributor

Hi Connections,

 

i have a requirement where i have to show previous and current values in the message html body on email notificaiton,  I'm triggering this notification via event when there is an update on the record. Here i have so show previous and current values. 

 

AzeemkhanM_0-1762397073189.png

 

need help on the above

 

regards,

uzmine

2 REPLIES 2

Monique Rogers
Tera Contributor

If you're using a business rule to trigger the event, you can send the previous value as a parameter when you trigger the event using previous.[field_name]. In the notification, you can access the parameter of the event using ${event.parm2} (or whatever index the parameter is when it's triggered) to insert it into your notification.

hi,

 

the challenge using param is that it will take values upto only 4 but i have more