- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2020 05:14 PM
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!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2020 07:21 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2020 07:21 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2020 05:44 PM
Thanks Prateek. We were able to resolve the issue with link.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2023 11:46 AM
Could you please let me know where to use this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2020 09:40 AM
Open the survey form and click on "View Survey Url" in the related links . Thats should display the URL which open the survey in service portal . Also you can refer to "Survey user invite" OOB email notification .
<mail_script>
var html = new AssessmentUtils().getInstanceLinkHTML(current);
template.print(html);
</mail_script>