- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2022 09:18 AM
By default the link for a survey is set to the default SP like below, but in our case we have multiple customer portals (CSM)
https://****.service-now.com/sp?id=public_survey&instance_id=123456789
So in my case i would like to sent a link related to customera or customerb.
https://****.service-now.com/customera?id=public_survey&instance_id=123456789
https://****.service-now.com/customerb?id=public_survey&instance_id=123456789
How should a script look like to get the right link created.
Thanks
Solved! Go to Solution.
- Labels:
-
Customer Service Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2022 03:21 AM
Hi
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>
Or Use something like below:
var link = gs.getProperty('glide.servlet.uri') + 'csm?id=take_survey&instance_id=' + current.sys_id;
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2022 12:18 AM
HI
You can add Survey widget in CSM portal to get the surveys in csm portal.
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2022 01:21 AM
Thanks Sandeep,
The widget is already implemented and functional, but i like to send a link to the contacts with the correct url to the right portal.
This part is still missing :).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2022 03:21 AM
Hi
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>
Or Use something like below:
var link = gs.getProperty('glide.servlet.uri') + 'csm?id=take_survey&instance_id=' + current.sys_id;
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep