Help
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

survey - help to add incident information

dboudreau
Kilo Contributor

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:

</surveylink />

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:

</surveylink />

Thanks,

The service Desk

1 ACCEPTED SOLUTION

Linda Kendrick
Kilo Guru

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.


View solution in original post

5 REPLIES 5

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

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


Linda Kendrick
Kilo Guru

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.


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


Linda,

 

How would I make this work for a request?  It works for incident but for request it pulls in no info but only some.

find_real_file.png