
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 06:27 AM
Hello guys,
From a Variable set, is it possible to access the variables of the same record producer?
Thanks,
Flavio.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 05:56 PM
You can use the g_service_catalog API:
g_service_catalog.parent.getValue("variable_name")
https://developer.servicenow.com/dev.do#!/reference/api/rome/client/g_service_catalogClientAPI

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 06:32 AM
You mean variable a from Variable set 1 to be accessible in Variable set 2?
If so, yes you need to build catalog client script, catalog UI policy at Record producer level & not variable set (1 or 2) level.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 06:34 AM
Hi,
we can't access variables of record producer from variable set client script/UI policy because variable set are not specific to any item, they are group of variable could be reused across multiple items.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 06:42 AM
Hi
Unfortunately , you can't.
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 05:56 PM
You can use the g_service_catalog API:
g_service_catalog.parent.getValue("variable_name")
https://developer.servicenow.com/dev.do#!/reference/api/rome/client/g_service_catalogClientAPI