Email Script Actions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 05:13 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 05:19 AM
In Servicenow scripts always overwrites any field settings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 05:22 AM
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 05:23 AM - edited 02-16-2024 05:28 AM
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.