Automatically Populate a Catalog Item Variable Based on Another Variable Selection

PrajayT
Tera Contributor

There are 2 variables : 1. Application(Look up Select Box) referenced to cmdb_ci_service table with the below reference qualifier

Screenshot 2026-07-07 175912.png2. SQL Server Name(Reference type) referenced to cmdb_ci_win_server table with the below reference qualifier

Screenshot 2026-07-07 180154.png

 

Based on the Application Selected related servers should be listed down in the SQL server Name reference variable. I have tried using 'cmdb_rel_ci' table by using script include & On Change Client Script based on the Parent & Child Relationship as parent is Application & server is Child but looks like it didn't work.

 

Do we know any other way for this?

1 REPLY 1

Ankur Bawiskar
Tera Patron

@PrajayT 

you can filter 2nd variable based on 1st

Also in variable attributes of 2nd variable you should give this so that it grabs the latest value of 1st variable

ref_qual_elements=application

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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