assessmentUtils().GetAssesementURL(current.sys_id); taking user to /sp.

Stacy2
Tera Expert

We have the below script in the message of a notification.  It yields, 

 https://XXXprod.servicenowservices.com/sp?id=take_survey&instance_id=000659671bcd0950c762cb37624bcb9...

Note the SP in the instance url.  We want these assessments to go through our platform UI, no Portal. 

How to fix??

Thanks so much, Stacy Whetzell

You have been designated as an assessment participant on ${metric_type} due to your role in the organization and subject matter knowledge. As required by management, please follow the link below and complete the assessment by ${due_date}. You can save your responses until you are ready to submit them. When you are satisfied with your responses, submit the assessment.

Click here to take your assessment: <mail_script>
var link = new AssessmentUtils().getAssessmentInstanceURL(current.sys_id);
var url = '<a href="' + link + '">' + link + '</a>';
template.print(url);
</mail_script>

To view your assessment queue at any time, sign in and navigate to Self-Service > My Assessments & Surveys.

1 ACCEPTED SOLUTION

Saurav11
Kilo Patron
Kilo Patron

Hello,

Check in the below property is true or false and make it false of you want to open it on native UI

find_real_file.png

Please mark answer correct/helpful based on impact

 

View solution in original post

3 REPLIES 3

Saurav11
Kilo Patron
Kilo Patron

Hello,

Check in the below property is true or false and make it false of you want to open it on native UI

find_real_file.png

Please mark answer correct/helpful based on impact

 

Most AWESOME answer!  Thanks Saurav

M-JHG
Tera Contributor

This worked perfectly. Thanks!