Reuse of variables and variable set from maintain item [ global] to record producer [ scoped]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2025 02:05 AM - edited ‎06-22-2025 02:36 AM
Hi Team,
My requirement is:
In ServiceNow I have a catalog item [maintain item] with few variables and variable set in Global application.
Now from the above catalog item, i want to reuse few variables, variable set and their respective catalog UI polices , catalog client scripts in the record producer created in the scoped application. is it possible to reuse those variables and variable sets and [ catalog ui policies , catalog client script] , if yes how to achieve this? or else i need to manually create all varibales and variables sets again in record producer.
please help me with the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2025 04:22 AM
Reusable
- If you create a variable directly inside a catalog item, it’s locked to that item. You can’t reuse it elsewhere.
- But if you put your variables inside a variable set, then yes — you can reuse that set across multiple catalog items and record producers. That’s the recommended way to go.
What Variable Sets Can Include
- Variable sets can hold:
- Variables
- Catalog UI Policies
- Catalog Client Scripts
So they’re super handy for reuse.
Scope Limitations
- If your catalog item is in the Global application, and your record producer is in a Scoped application, you’ll hit some roadblocks.
- Scoped apps can’t directly access variables or scripts from Global apps unless you explicitly allow it.
Here are a few ways to handle this:
Clone or Recreate
Just manually recreate the variable sets, variables, UI policies, and client scripts in your scoped app. It’s tedious but straightforward.Use Script Includes or APIs
Move reusable logic into Script Includes in the Global scope and expose them via public APIs. Scoped apps can then call those.Global Variable Sets
Create a variable set in the Global scope and attach it to both catalog items and record producers — but only if your scoped app has permission to use global resources.
Stay awesome,
Roshnee Dash

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2025 02:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2025 08:08 PM
you can script to create those variables in your scoped app and fetch the details from global scope variable set
where are you stuck?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader