We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to set Importance of email notification using email script?

rpoola
Tera Contributor

I am using same notification in different scenarios. In one scenario, I need to send notification marking importance as High. I tried below syntax and few other but did not work. 

email.setHeader("Importance", "high"); 


4 REPLIES 4

Elijah Aromola
Mega Sage

You would probably need to make two different notifications for this. You can set the importance on the notification record itself: find_real_file.png

Thank you for the quick response, Elijah. I understood the above approach works.

I would like to use same notification and set Importance in Email script. Do you know the syntax I can use to achieve that.

 

I'm not sure that you can do that from there. I also wasn't able to find anything online that said otherwise.

Andy H1
Tera Expert

I'm using the script proposed in the solution to this question to send emails:  Forwarding the email to another instance

To that script, I added the line below to mark the send as high importance:

mail.importance = "high";