Take the survey link in mail notification

yana6
Kilo Explorer

Hello,

I use the survey designer to configure a survey. In the availability tab i select "specific users". Then i go to save & publish. Mail notification says: click this link to take the survey, but there is no link. Where do i have tu put a link in order to have it in the notifications email. And also, where do i get the url from?

I also face difficulties making the survey public.

Thanks,

Regards

6 REPLIES 6

Chuck Tomasi
Tera Patron

Hi Yana,



Take a look at the Incident Survey notification. it calls an email script that does the work.



Change INSTANCE to your instance in the URL below.



https://INSTANCE.service-now.com/nav_to.do?uri=sysevent_email_action.do?sys_id=be1a8cb6c0a8016600d5d...


Sumanta Sathua
ServiceNow Employee
ServiceNow Employee

Ideally the URL should available under the email notification . Let me know the glide version of your service now instance . Also let me know if this instance recently upgraded ?


yana6
Kilo Explorer

Chuck,


Thanks a lot for your reply.


I need to prepare a survey, distributed by email, not related to specific incident, but providing customers satisfaction in general. When defining the users to fulfill it, i need to be able to send the link, as well as to have it after login too.



Where is normally [laced the script in your message above?


Sumanta Sathua
ServiceNow Employee
ServiceNow Employee

You can navigate to System notification ->email->notifications and search for name     "Survey User Invite" .   You can dee the how the URL generate under the tab   "What it will contain" .And edit the URL as per the requirement .



You have been invited to take the survey: ${metric_type}.  




Click here to take your survey:


<mail_script>


var link = new AssessmentUtils().getAssessmentInstanceURL(current.sys_id);


var url =   '<a href="' + link + '">' + link + '</a>';


template.print(url);


</mail_script>




To view your survey queue at any time, sign in and navigate to Self-Service > My Assessments & Surveys.