Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to Create Related List based on Catalog Item Variables

kshaw
Giga Guru

I have built a number of Service Catalog Items for HR requests.

I want to add a related list based on filtering using Variables from the catalog items.

How do I do that?

4 REPLIES 4

DrewW
Mega Sage

You can do this under the System Definition -> Relationships.  This will allow you to create a custom related list based on a specific table and query.  There are lots of examples to look at there.

 

kshaw
Giga Guru

Yes, I have seen lots of examples but I cannot find any that are using a catalog item Variable for the relationship.

Did you look at the relationships?  You pick a table that its going to show records for, pick a table that you want it to be able to show it on the form and then give it a query.  Just set the query up to use the variables to get the values just like you would if you were doing a gliderecord query.

 

Onkar Pandav
Tera Guru

Hi,

For this, you have to define relationship under System Definition --> Relationships.

You can write script for certain filter conditions. I found one link also. Click Here for Link.

Check if it is useful.

--

Regards

Onkar

find_real_file.png