- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2020 07:50 AM
We've created a public access survey. Our requirement is to have all users take this survey through the service portal and not the backend.
What is the URL for accessing the survey in the service portal? We don't want to "Assign" or "Send Notification" of the survey to our users.
We want to be able to send a generic link to the survey through the service portal.
I only see a Survey URL to the backend like this:
https://instance.service-now.com/assessment_take2.do?sysparm_assessable_type= XXXXXXXXXXX
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2020 07:19 AM
Ah i think i found it!
https://instancename.service-now.com/sp?id=take_survey&type_id=XXXXXXX
instead of the instance_id you can specify the type_id.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2020 07:58 AM
Can you try with public_survey URL?
Here is what I can see logic in AssessmentUtils Script Include. You can use id=public_survey as well:
if(this.redirectToPortal() == 'true'){
if(asmtRec.allow_public)
url = instanceURL + this.defaultServicePortal + '?id=public_survey&instance_id='+instance;
else
url = instanceURL + this.defaultServicePortal + '?id=take_survey&instance_id='+instance;
}
-------
if(eval_method == "survey" && this.redirectToPortal()=="true"){
if(isSurveyPublic)
url += this.defaultServicePortal + '?id=public_survey&type_id=' + type;
else
url += this.defaultServicePortal + '?id=take_survey&type_id=' + type;
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2020 08:19 AM
Yes, I said this below, an hour ago.
Thank you
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2020 08:29 AM
My Bad, I didn't check that. I went to check the code right away I saw this question, to find what can be the Format of the URl.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2020 08:32 AM
No worries, still good information you posted, but yea. I was working with them on the issue and they found what they think works (for now) and ran and marked their own post as correct, haha.
But yes, they'd want to use the public_survey url I posted right below this as that portal page is setup for public use so it allows external, not logged in users, to use it. Which is what they're trying to do.
Otherwise, if kcf runs off with that url that they marked correct in their own post, they will quickly learn the issue with that, haha.
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2020 08:36 AM