Survey URL from email Notification redirecting to Service Portal

pramodkumar
Tera Expert

Hello All,

We are working on surveys, redirected a survey email link to service portal. We are not displaying survey widgets on the portal. The requirement is, when the user clicks on the survey email link it should redirect him to the respective survey meaning it may be be incident or request survey.

 

How can we get the dynamic link in the email scripts?

 

 

Thanks!

 

1 ACCEPTED SOLUTION

Use something like below:

var link = gs.getProperty('glide.servlet.uri') + 'sp?id=take_survey&instance_id=' +  current.sys_id;

Please mark my response as correct and helpful if it helped solved your question.
-Thanks

View solution in original post

8 REPLIES 8

Sumanta Sathua
ServiceNow Employee
ServiceNow Employee

Navigate to "Assessment properties" - > uncheck the first checkbox  ("Allow Survey link from email to open Service portal view ") . Save this . Now trigger the survey again . It should send survey link that will open in platform view .

We want to open the link in portal only

Prateek kumar
Mega Sage

It is in the Survey> Administration>Properties


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

We already enabled the property.

All we need is building the URL to open the survey.