RITM Variable Section has a reference field which does not get updated based on "Dependent field"

Carltan
Tera Contributor

Hi,

 

I have 2 fields under an RITM in the 'Variables' section called 'Service' and 'Classification'. 'Classification' is dependent on the value of 'Service'. This is working when creating a new work request in the Employee Center. However, when editing the RITM directly, the 'Classification' field is not being updated with values depending on the selected value from the 'Service' field. I have attached some images to provide clarification.

 

Is there a way to have the available option show up or are there any options like changing field type instead? For clarity, these are closed RITMs and these fields are only made editable using the Catalog UI Policy.

 

16 REPLIES 16

@Carltan 

the Lookup value on both the variables should be "Value" field as per my screenshots

Also in 2nd variable you need to give name filter condition i.e. name=cmdb_ci_service 

this helps to pick that choice field from that table.

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

Hi @Ankur Bawiskar ,

I have followed your advice of giving the 2nd variable a name filter condition: name=cmdb_ci_service

 

As for the setup, I was trying to find the 'Value' field for the lookup value however it does not exist on my end.

 

I did a couple of test by changing around the lookup values but nothing seemed to work so I thought I maybe missing something.

 

Currently, I have the following setup but the lookup does not seem to work. 

 

Service:

Carltan_1-1751983912304.png

 

Classification:

Carltan_2-1751983924159.png

Available Lookup field values:

Carltan_0-1751983790044.png

 

@Carltan 

you didn't configure it as per my screenshots.

I pointed both the variables to sys_choice table and then handled the dependency

sharing it again

Incident Category variable

AnkurBawiskar_0-1751986002204.png

 

 

Incident Subcategory variable

AnkurBawiskar_1-1751986002569.png

 

 

Output: The dependency works in RITM form

AnkurBawiskar_2-1751986002215.gif

 

The Dependency works on Catalog form as well

AnkurBawiskar_3-1751986002487.gif

 

 

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

@Ankur Bawiskar ,

 

Hi Ankur, yes I have tried this at first (pointing to the sys_choice table and changed the configurations as indicated) however, the dropdown list on the RITM variable shows like an ID:

 

Service:

 

Carltan_0-1752020235853.png

 

Classification

Carltan_1-1752020251895.png

 

Output:

Carltan_2-1752020303825.png

 

 

@Carltan

you are using operational_status in ref qualifier which won't work as that's not a field on sys_choice

why not use both as Reference variable instead of Lookup Select box?

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