Catalog Item Templates: client scripts and UI Policies

tahnalos
Kilo Sage

I'm trying to create a Catalog Item Template that will likely use some question sets that will require Catalog Client Scripts and Catalog UI Policies.  Is there a way to define this at a template level, or am I only able to do so on the item level?

 

Seems that if I can only do the latter, then the template may not be as useful as I had hoped, and the only real recourse would be to copy an existing Catalog Item with the scripts already there if I want to use it.

3 REPLIES 3

Elijah Aromola
Mega Sage

You can create variable sets and then put those on multiple catalog items. Each variable set can have it's own catalog client scripts and UI policies. 

 

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/product/service-catalog-management/...

I am aware of variable sets, and their functions, but my issue is that I have multiple variable sets, each with a different function and reused across the instance (we have more than 10 variable sets, and each template uses about 3 or 4 of them).  The issue for me lies in the ability to define what happens for each variable set itself for each catalog item.

I don't think ServiceNow allows for nesting of variable sets within variable sets, because that would be extremely useful in me to define which variable sets to trigger based on dynamic criteria.

sushantmalsure
Mega Sage
Mega Sage

answer to your question is variable sets.

Variable sets: variables, related client script, related UI policies can be included in multiple catalog items which makes sure of reusability.

So go for variable sets, may the force be with you!!

Do post if you have any more related questions.

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,Sushant Malsure