Apply color to field value to be shown in notification

BijoyDeb
Tera Contributor

Hi all,

 

I have a table which has 2 fields-

Color code - choices (red, green,yellow)

Details - string

 

I have created one notification on this table and want to show details field value with same color in notification with the exact color in color code field value for that record.

 

I have to this in email script, has anyone done something like this before?

 

1 REPLY 1

SN_Learn
Kilo Patron
Kilo Patron

Hi @BijoyDeb ,

 

Please check the below article:

 

https://www.servicenow.com/community/developer-blog/mini-lab-adding-css-to-an-email-notification-par... 

 

https://youtu.be/PpWMFORUsv0?si=YmP4YQx6qPaNU9w- 

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.