Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Survey links in emails generating as 'undefined' - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Survey links in emails generating as 'undefined'
KB0748010

Survey links in emails generating as 'undefined'


1940 Views Last updated : Jul 22, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

After upgrading to Madrid, Survey Links in the email are broken. 

Basically, the Survey links in the email are generated with no URL. Instead, you see 'undefined' where the URL should be. 

 

Steps to reproduce: 

1. Resolve the incident

2. Check email for Survey 

3. Survey link will show ‘undefined’

 

Survey link will be undefined

Release

Madrid

Cause

Upon investigating we identified there were customizations made on AssessmentUtils  Script include which skipped the file during the upgrade.

 

- The notification used for the surveys is Survey User Invite 

- In the Message of this Notification the mail script has the code below: 

 Click here to take your survey: 

 

<mail_script> 

var html = new AssessmentUtils().getInstanceLinkHTML(current); 

template.print(html); 

</mail_script> 

 

- This is referencing OOB Script Include and the method 'getInstanceLinkHTML(current);' 

 - After reviewing the script include ‘AssessmentUtils ‘ we determined it has been heavily customized 

- On the current custom version of this file a huge chunk of code missing.

 From line 1119 beginning of the relevant code ( getInstanceLinkHTML : function(instanceGr) {) 

 To line 1391 is missing from the custom version of the script but exists in the OOB code. 

Resolution

Revert to the OOB version of this file ‘AssessmentUtils ‘. After reverting Script Include ‘AssessmentUtils’ to the original version, the survey url issue is fixed.

 

1. To do this navigate to the Script Include record below 

https://xxxxxx.service-now.com/nav_to.do?uri=sys_script_include.do?sys_id=ca4033c1d7110100fceaa6859e610326 

 

Review the 'Versions' related list on the Form. 

From the versions list, right click on the record 'System Upgrades: glide-madrid-12-18-2018__patch1-hotfix2-03-14-2019_03-20-2019_1304.zip' 

From the pop up which is opened, select 'revert to this version'. 

 

2. Alternatively, navigate to Module > Upgrade History, find the relevant skipped log record below 

Open this record, and at the bottom of the open page click the 'Resolve Conflicts' button. 

In the page that opens, scroll to the bottom of the page click the 'Revert to base system' button. 

Related Links

Please note as per recommended after an upgrade, best practice suggests you review your skipped objects. These records should be reviewed, and you should revert any of the supplied scripts to an Out Of Box state and then reapply any customizations on top. 

This ensures that any changes made in the underlying code are current and up to date, and will work as expected on that version of the ServiceNow platform


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.