Email Script Actions

Rooma1
Tera Contributor

Hi All,

I have been asked in the interview, If we are setting Subject in the email script and also on the subject field, which one will apply in the notification?

 

Thanks,

Rooma

3 REPLIES 3

Weird
Mega Sage

In Servicenow scripts always overwrites any field settings.

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Rooma1 

 

Script will be override the field values.

 

You can try in PDI. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Community Alums
Not applicable

Hi @Rooma1 ,

 

In ServiceNow if we set both subject in the Email script & Subject field in the notification. The subject set in the Email script will take precedence over the one set in the Notification configuration when the notification is triggered.

 

I've recently implemented this functionality in our instance & based on the field value I have to override Email subject irrespective of what was set in the Notification subject & it was achieved using Email script

 

Please mark it as "Accept as Solution" and "Helpful" if this solution helped you.


Thanks & Regards,
Madhan Somesh.