Customer Email Survey links going to SSO login screen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2024 07:11 PM
Hi,
We have email notifications going out to customers inviting them to take part in a survey. However when the customer contact clicks on the link they are taken to a SSO login page, which is no good them as they are not in Active Directory (AD).
Interestingly, in the same email, there is a link to the Case, the closure of which would have generated the survey, which when clicked on takes the user to their normal login page. Once logged in they are taken directly to the Case.
The Notification that generates these two links does so in different ways. Below is the notification email body that has the link code.
You have been invited to take the survey: ${metric_type} <mail_script>
if(current.trigger_id.getDisplayValue().includes('Case')){
template.print('due to the recent closure of');
var url = '/csm/?id=csm_ticket&table=sn_customerservice_case&sys_id='+ current.trigger_id.sys_id +'&view=csp';
template.print('<div><a title="${trigger_id}" href="' + url + '">${trigger_id}</a></div>');
}
</mail_script>
Click here to take your survey:
<mail_script>
var html = new AssessmentUtils().getInstanceLinkHTML(current);
template.print(html);
</mail_script>
The Case link is at the top and the Survey link is at the bottom and is generated by calling functions in an include script. I would like to know how to create the Survey link, that does not go to the SSO login page, in the same way that the the case link is created. Or configure ServiceNow to create a link that does not go to the SSO login page using the include scripts.
Regards,
Gerard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2024 11:31 PM
Update the generated link in the script include 'AssessmentUtils()', but check if you don't have internal surveys triggered in the same way. If that's the case, you need to put in a validation between the different user groups.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark