Reuse of variables and variable set from maintain item [ global] to record producer [ scoped]

Sachin Gavhane
Giga Guru

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

3 REPLIES 3

Roshnee Dash
Tera Guru

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:

  1. Clone or Recreate
    Just manually recreate the variable sets, variables, UI policies, and client scripts in your scoped app. It’s tedious but straightforward.

  2. 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.

  3. 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.

Your feedback makes the community stronger! If you found this helpful, marking it as the correct answer helps others.
Stay awesome,
Roshnee Dash

tiagomacul
Giga Sage

Ankur Bawiskar
Tera Patron
Tera Patron

@Sachin Gavhane 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader