Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Change request

Vibha19
Tera Contributor

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.

3 REPLIES 3

Abhi13
Giga Guru

Hi @Vibha19 ,

 

In "What it will contain" section of email notification you can choose fields to add in the email layout.

 

Thanks,

Abhishek

SN_Learn
Kilo Patron
Kilo Patron

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.

Dr Atul G- LNG
Tera Patron
Tera Patron

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]

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