based on item it's possible to change common variable refrence qualifier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 09:51 PM - edited 08-09-2023 10:02 PM
we have two catalogs items but both items we are using one common variable set. in that variable set we have one variable so in that variable we need change refrence qualifier based on item how we can archive these
item: A
Item:B
javascript:'u_type_of_licenseINcustomer^u_end_of_lifeISEMPTY^ORu_end_of_life>javascript:gs.endOfToday()';
so please let me know in common variable how we can change refrence qualifier based on item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 10:07 PM
in the reference qualifier it would be difficult to know the catalog item
Why not have it as separate variable on each catalog item?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 10:21 PM
HI ankur,
We have 2 columns "List of Software". The owner is asking me only 1 column to list the software for A and B. Is it possible to use the same variable ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 11:23 PM
When you're dealing with similar needs for different items in a list, it's a good idea to use a variable set. This helps keep things organized and consistent. However, if you're dealing with two different filters, it's best to use two separate variables. This makes things clearer and easier to manage.
Still if you want to implement it, you can use as below:
current.cat_item == "SYS_ID_OF_ITEM"
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.