Change request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2023 12:45 AM
Hi All
Change request fields plan start date & end date, justification, roll out plan, and test plan all the fields information should be visible on the change task email notification. please provide a solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2023 12:52 AM
Hi @Vibha19 ,
In "What it will contain" section of email notification you can choose fields to add in the email layout.
Thanks,
Abhishek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2023 01:00 AM - edited ‎11-21-2023 01:03 AM
Hi @Vibha19 ,
You can either use the 'what it will contain' section and then select the variables OR by using notification email script as below:
(function runMailScript(current, template, email, email_action, event) {
template.print('<b>Plan Start Date:</b> '+ current.<update_backend_name_of_this_field>.getDisplayValue());
template.print("<br/><b>Plan End Date:</b> "+ current.<update_backend_name_of_this_field>.getDisplayValue());
template.print('<br/><b> justification:</b> '+ current.<update_backend_name_of_this_field>);
})(current, template, email, email_action, event);
Please also navigate to the article by ServiceNow: Notification Email Script
Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2023 01:43 AM
Hi @Vibha19
May i know why all these fields required on change Task? What is use case of this?
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]
****************************************************************************************************************