The CreatorCon Call for Content is officially open! Get started here.

Need help in email script

nameisnani
Mega Sage

Hi Team , 

 

can anyone please help me on this 

 

Daily we are doing ServiceNow health check up -  data will capture in a xls . 

nameisnani_0-1760609058909.png

 

 

we have created a custom table 

nameisnani_1-1760609100920.png

 

and once the record submitted we need trigger a notification 

 

nameisnani_2-1760609173081.png

 

we want to add coloring format based on the value selected for exmple - mid server down means Red color - 

if UP green color

nameisnani_3-1760609254759.png

 

like below 

nameisnani_4-1760609291523.png

 

 

please help me how to do this 

 

please provide me the configuration steps 

8 REPLIES 8

GlideFather
Tera Patron

Hi @nameisnani,

that's quite a complex thing.

 

Please share what have you already done and we can discuss the next steps.

 

If you are about to start, I recommend to create the notification record - decide whether it will be trigger per new creation in the custom table or by firing an event (even would need to be fired by BR or Flow or something else).

 

Once you will have triggerable notification record, then create a email script where there will be lots of difficult coding to populate the template as you want.

 

Let me know about your progress and how does the first draft looks 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


@GlideFather 

nameisnani_0-1760609727665.png

nameisnani_1-1760609768997.png

nameisnani_2-1760609809318.png

 

 

example 

 

I submitted the record with below values 

nameisnani_3-1760609907594.png

nameisnani_4-1760610009292.png

 

If Mid server down - I need box in red color 

If Mid Server Up - field box in green color 

 

@GlideFather 

 

How to do this please provide me the configuration screenshots 

 

Ankur Bawiskar
Tera Patron
Tera Patron

@nameisnani 

wherever you want color, there please use email script

In email script check the value is UP or DOWN and accordingly give the color and print using template.print()

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar  could you please provide me email script