The CreatorCon Call for Content is officially open! Get started here.

Public Survey url through the service portal

kcf
Tera Expert

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

1 ACCEPTED SOLUTION

kcf
Tera Expert

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.

View solution in original post

13 REPLIES 13

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;
}

Yes, I said this below, an hour ago.

Thank you


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

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.

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.

find_real_file.png


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

True, take_survey page is not Public. Let's hope they find their mistake.

find_real_file.png