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.
Cascading variables that have different data types work on the platform but do not work on service portal - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Cascading variables that have different data types work on the platform but do not work on service portal
KB0726346

Cascading variables that have different data types work on the platform but do not work on service portal


701 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Description

Cascading variables that have different data types is not working on the portal but works on the platform.

Steps to Reproduce

1. Navigate to an existing order guide (For example: New Hire)
2. Add a variable (such as testVar)of type 'Single line text' on the order guide.
3. Add a variable with same name (testVar) but of type 'Reference' to one of the included items such as Standard Laptop
---> Reference table 'cmdb_ci' table with simple reference qualifier.
4. Create an onLoad client script to populate a value for the variable in the order guide such as
g_form.setValue("testVar", "b4fd7c8437201000deeabfc8bcbe5dc1");
---> Here b4fd7c8437201000deeabfc8bcbe5dc1 is sys_id of a record in cmdb_ci table.
5. Navigate to order guide on portal.
6. Notice that the sys_id is correctly set in Single line text on initial load.
7. Fill out other fields and click "Next".
8. In the Choose Options screen, the reference field in included item will have sys_id instead of the actual record from cmdb_ci table.

Expected behavior: The variable should cascade in the catalog item.
Actual behaviour: the variable doesn't cascade in the catalog item.

Workaround

After careful consideration of the issue, the dev team has informed that auto-type casting of the cascaded variables is only supported on platform and not on the service portal. Hence this problem is in Won't fix state.


Related Problem: PRB1326047

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.