Choice table issue

dmahendran
Tera Contributor

I have a requirement to create three variables—Category, Subcategory, and Choice—that should only be visible in the RITM and Task when the Assignment Group is HCL. These variables have been created as Lookup Select Box types, and their options are managed through the sys_choice table. I’ve also used reference qualifiers for filtering and set up a UI Policy to make these variables visible only when the Assignment Group is set to HCL.

The issue I'm facing is that while the Category variable works fine when assigned to the HCL group, I'm unable to select any options in the Subcategory and Choice variables. For troubleshooting, I temporarily disabled the UI Policy and tested it through the Service Portal—everything worked correctly. However, the problem persists in the backend view (platform UI), where the Subcategory and Choice options remain unselectable.

Any help or suggestions would be appreciated.

 

9 REPLIES 9

@dmahendran 

in subcategory variable try to add variable attributes

ref_qual_elements=category

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

This solution works well, thank you! There's just one additional requirement: when the Assignment Group on the task is set to HCL, and someone updates the Category and Subcategory fields on the task, those changes should also be reflected in the corresponding fields on the parent RITM. Right now, the values are being updated on the task, but they are not syncing back to the RITM, which is part of the requirement. Any assistance would be appreciated!!

@dmahendran 

ideally if you update the variable on SC Task then it should reflect on RITM as well

In the backend it's the same record where it's stored

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

In my case, it's not working as expected. When I change the values at the task level, the updates are not being reflected on the RITM. There's also a condition where everything should sync only when the task is assigned to the 'HCL' assignment group. While this condition is being met, the changes to Category and Subcategory are still not reflected on the RITM, which is the issue I'm facing

@dmahendran 

if you disable the UI policy on RITM and SC Task then does that dependency work fine?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader