ITSM Catalog item

JatinSharma
Tera Contributor

can we access variable set from catalog client script

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @JatinSharma 

 

yes, but what is your use case.

 

https://www.servicenow.com/community/developer-forum/how-to-access-variables-in-client-script-of-var...

 

https://www.servicenow.com/community/developer-forum/catalog-client-scripts-are-they-limted-to-varia...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Rafael Batistot
Tera Sage

Hi @JatinSharma 

 

Use g_form Ap

 

e.g: 

g_form.getValue('<variable_name>')

Ankur Bawiskar
Tera Patron
Tera Patron

@JatinSharma 

you can use OOTB g_form object to access variables within the variable set and not the variable set directly.

But what's your business use-case?

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

Aniket Chavan
Tera Sage
Tera Sage

Hello @JatinSharma , Absolutely! Could you please share exactly what you’re trying to solve or where you’re trying to access? If possible, include some details and screenshots so we can guide you better in resolving it.

 

🔹 Please mark Correct if this solves your query, and 👍 Helpful if you found the response valuable.

 

Best regards,
Aniket Chavan
🏆 ServiceNow MVP 2025 | 🌟 ServiceNow Rising Star 2024