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.
Unable to pull the information in the multi-row variable set via script  - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Unable to pull the information in the multi-row variable set via script 
KB0859735

Unable to pull the information in the multi-row variable set via script 


402 Views Last updated : Apr 8, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

Unable to pull the information in the multi-row variable set via script 

Code Used: 

var mrvs;
var item = new GlideRecord('sc_req_item');
item.addEncodedQuery('sys_id=401e1acfdbc69c1051f8d8c75e96197c');
item.query();
if(item.next()){


mrvs = item.variables.vs_budget_line_item;
gs.print(mrvs);

}

Cause

The variable set name is being used instead of the internal name.

Resolution

In the script, the variable set name is provided as vs_budget_line_item which is the name of the variable set.

When trying to pull the information from the database we need to provide the internal name as the information is stored based on the internal name.

The internal name of the Budget line item variable set is u_vs_budget_line_item.

Changing the script with the internal name will fix the issue.



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.