My Catalog UI Policy Action --> Variable name field is not displaying any Variables from my catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2015 06:11 PM
My Catalog UI Policy Action --> Variable name field is not displaying any Variables from my catalog item.
So I have a Catalog Item and I've like to setup a UI policy to display/hide a variable depending on it's condition... What am I missing here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2016 04:13 PM
Hi All,
I ended up logging this issue in HI. They said "The issue here is due to you not running the latest version of the below Client Script. This is what loads the "Variable name" onto the form. There are two client scripts like this, one for ui policy actions applied to variable sets, and one when it's applied to catalog items. It seems both of the client scripts you're running are applying to variable sets, and so as your catalog ui policy action is applied to a catalog item there's no data to load in for it. All you need to do is go to the below client script: "Set Catalog Variables" and in the "Versions" related list at the bottom of the page find and open the record from 15-06-2016 23:23:08. Then on that record, revert to that version by clicking the "Revert to this version" related link at the bottom of the form."
I'm unclear as to why my instance wasn't already running the latest version of this client script but once I reverted to the correct version as suggested everything worked ok.
Hope this works for you too Jim! Let us know.
Cheers
Daniel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2016 07:35 PM
Hi Daniel,
Thanks for the information. I checked the Set Catalog Variables clients scripts and one for catalog_item is already in there. So there must be another cause in my case but I have no idea what it could be. I pasted in the client script from an instance that is not having this problem but the problem is still there. In my case the field label is there but the field is missing completely:
Thanks once again for your help.
Anyone else have any idea what could be causing this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2019 08:01 AM
Hi
I am also facing same kind of issue. Is there anyone who can help me.
I doing it using rest api.
I am trying to create a item in service catalog using rest. Response- Success
then I created variables using rest. - Response- Success
then I am creating UI Policy using rest- Response- Success
Then I am creating UI Policy action using rest - Response- Success but here is a problem. Problem is my variable name ("catalog_variable ") is null after creating UI policy action. I did it many time, every time Ui policy action got created successfully but catalog_variable is always empty.
Dont know what is wrong.
This is json I am passing to catalog_ui_policy_action.
{"catalog_item":"a639ebe31b223300783a2136ec4bcb3f","catalog_variable":"4d59ab631b223300783a2136ec4bcb26","field":"select_lease_contract_term","ui_policy":"507c63a71b223300783a2136ec4bcbf2","mandatory":"true","visible":"true","order":"106","table":"catalog_ui_policy_action"}
and I tried passing like this as well.
{"catalog_item":"a639ebe31b223300783a2136ec4bcb3f","catalog_variable":"IO:4d59ab631b223300783a2136ec4bcb26","field":"select_lease_contract_term","ui_policy":"507c63a71b223300783a2136ec4bcbf2","mandatory":"true","visible":"true","order":"106","table":"catalog_ui_policy_action"}
only catalog_variable value is different in both above json
and in response I am getting this:
{
"result": {
"ui_policy": {
"link": "https://dev74834.service-now.com/api/now/table/sys_ui_policy/f32a9dc01bbe3300783a2136ec4bcb9b",
"value": "507c63a71b223300783a2136ec4bcbf2"
},
"sys_updated_on": "2019-07-17 14:16:11",
"mandatory": "true",
"sys_class_name": "catalog_ui_policy_action",
"sys_id": "08ba150c1bbe3300783a2136ec4bcb48",
"sys_updated_by": "admin",
"variable_set": "",
"sys_created_on": "2019-07-17 14:16:11",
"sys_name": "select_lease_contract_term",
"disabled": "true",
"sys_scope": {
"link": "https://dev74834.service-now.com/api/now/table/sys_scope/global",
"value": "global"
},
"sys_created_by": "admin",
"table": "",
"order": "101",
"catalog_variable": "",
"visible": "true",
"catalog_item": {
"link": "https://dev74834.service-now.com/api/now/table/sc_cat_item/a639ebe31b223300783a2136ec4bcb3f",
"value": "a639ebe31b223300783a2136ec4bcb3f"
},
"sys_mod_count": "0",
"sys_tags": "",
"sys_package": {
"link": "https://dev74834.service-now.com/api/now/table/sys_package/global",
"value": "global"
},
"sys_update_name": "catalog_ui_policy_action_08ba150c1bbe3300783a2136ec4bcb48",
"field": "",
"variable": "select_lease_contract_term",
"cleared": "false",
"sys_policy": ""
}
}
Can anyone please help on this. Trying to do get the solution from last 3 days but no proper documentation, no support from service now.