06-03-2016 12:50 PM
Good day everyone.
I was wondering if anyone can point me to the right direction. We would like to change the survey e-mail to include information of the incident they opened up. The issue is I don't know how to include the incident information within the survey.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
currently this is how the e-mail looks
<Subject> We value your input. Please help us by taking the time to fill out this short survey:
Click here to take your survey:
Thanks,
The Service Desk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
We would like for it to say this.
We value your input. Please help us by taking the time to fill out this short survey:
Thank you for submitting your incident </Incident Number/> for </short Description/>
Please click here to take your survey and let us know know how we did:
Thanks,
The service Desk
Solved! Go to Solution.
06-03-2016 01:35 PM
We are using Fuji.
This is how we did it.
This survey will be based on the following:
Number: ${trigger_id.number}
Opened Date: ${trigger_id.opened_at}
Resolved Date: ${trigger_id.resolved_at}
Resolved By: ${trigger_id.resolved_by}
Short description: ${trigger_id.short_description}
Email asmt_assessment_instance_script_1 to put the survey link in the notification
var link = new AssessmentUtils().getAssessmentInstanceURL(current.sys_id);
var url = '<a href="' + link + '">Take Survey</a>';
template.print(url);
hope that helps.
06-03-2016 01:12 PM
Hi David,
The message can include variables from the Select variables column. Variables map to column names available from the notification table, its parent tables, and reference tables. Use variables to include values from a record in the table such as an incident's short description or comments and work notes.
http://wiki.servicenow.com/index.php?title=Email_Notifications#gsc.tab=0
06-03-2016 01:35 PM
We are using Fuji.
This is how we did it.
This survey will be based on the following:
Number: ${trigger_id.number}
Opened Date: ${trigger_id.opened_at}
Resolved Date: ${trigger_id.resolved_at}
Resolved By: ${trigger_id.resolved_by}
Short description: ${trigger_id.short_description}
Email asmt_assessment_instance_script_1 to put the survey link in the notification
var link = new AssessmentUtils().getAssessmentInstanceURL(current.sys_id);
var url = '<a href="' + link + '">Take Survey</a>';
template.print(url);
hope that helps.
06-03-2016 03:33 PM
You could perform the above which Linda suggested, which works just fine.
Or you could do a mail_script and go out and get the info, then template.print("content") into your notification.
Scripting for Email Notifications - ServiceNow Wiki
04-22-2020 11:29 AM