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.
In Service Portal, "sysparm_item_guid" does not work. Use g_form.getUniqueValue() instead. - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • In Service Portal, "sysparm_item_guid" does not work. Use g_form.getUniqueValue() instead.
KB0723775

In Service Portal, "sysparm_item_guid" does not work. Use g_form.getUniqueValue() instead.


5501 Views Last updated : May 20, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

In Service Portal, sysparm_item_guid does not work. 

 

 

Symptoms

Use of sysparm_item_guid in the client scripts for getting the sys_id of the current catalog item works perfectly fine in Platform UI. However, the same script fails to retrieve sys_id in Service Portal.

Cause

The reason the same client script doesn't fetch the sys_id of the current item in Service Portal is because there is not any element called sysparm_item_guid in the Service Portal DOM UI.

Resolution

The client script looks for a parameter, sysparm_item_guid.
This parameter is not available in Service Portal. Instead, use the catalog item sys_id.

If the requirement is to get the catalog item sys_id in Service Portal, you can use of the following API instead of sysparm_item_guid:
========================
g_form.getUniqueValue();
========================

To learn more about using this GlideForm API, refer to the product documentation.

 


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.