Question on survey response link button

Mani60
Tera Contributor

Hi All,
I have created one low feedback survey notification, when user gives low feedback then this notification should be Triger and go to the survey manager, it is working fine but in that notification i have added one link button to show survey response, This link is showing an error, please see the error below snapshot.

Mani60_0-1710999606158.png

 

Mani60_1-1710999606201.png

 

Survey Responses are not visible from survey response link despite admin access.

For this link i have created email script.
Please see the below email script code:

 

(function runMailScript(current, template, email, email_action, event) {
    template.print('<p><font size="3" color="#000000" face="Calibri (Body)">');
   
    template.print('</font></p>');
    template.print('<p><font face="Calibri (Body)">');

   
    var id = current.getUniqueValue();
var type = current.getValue('metric_type');
var uri = gs.getProperty('glide.servlet.uri').toString();
var url = uri + 'assessment_take2.do?sysparm_assessable_sysid=' + id + '&sysparm_assessable_type=' + type + '&sysparm_reader_view=true';

   
     template.print('<a style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; background-color: #278efc; border: 1px solid #0368d4; display: inline-block; padding: 5px" + href= ' + url + '>Please review the survey response here </a>' );
    template.print('</font></p>');  
 
})(current, template, email, email_action, event);
 
Could you please anyone help me on this to get the proper solution.
 
Thanks
 
1 REPLY 1

Mark Manders
Mega Patron

You can follow this question as well: https://www.servicenow.com/community/developer-forum/survey-url-issue-getting-error-on-page/td-p/287...

Different user account asking it, but exactly the same text (and even in the same part of the community). 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark