Adding related list on the form

Tejaswini9
Tera Expert

Hello,

I have a requirement to add the active true configuration items as related list, can anyone suggest me how to achieve this as i am very new to servicenow.

Quick help would be appreciated!!!

Regards,

Teju

1 ACCEPTED SOLUTION

Utpal Dutta1
Mega Guru

Hey Tejaswini,

If you are working on the tables which is already available in ServiceNow then you can just Right Click on banner and go to Configure>Related List and add Configuration Item.

 

If you need to filter out only available CI's then you need to create Defined Related List.

 

For Incident table or any other ServiceNow table you can create a Defined Related List and to filter only active CI's use code: current.addQuery('active','true');

 

But if you are working on custom table then you need to create Relationships (Defined Related List).

  1. Navigate to System Definition>Relationships
  2. Click New
  3. Name the Relationship and Select your table in Applies To table field.
  4. In Queries form table enter the table you want as in Related List in your table which is CMDB_CI.
  5. You can also put some condition as script as: current.addQuery('active','true'); (Shows only active CI's)
  6. Now save it and go to your table and  Right Click on banner and go to Configure>Related List. Here you will be able to see your relationship name just add it and save it.

 

If i was able to help you out then please mark my answer Helpful as well as Correct.

 

Thanks and Regards:

Utpal Dutta

 

View solution in original post

4 REPLIES 4

Utpal Dutta1
Mega Guru

Hey Tejaswini,

If you are working on the tables which is already available in ServiceNow then you can just Right Click on banner and go to Configure>Related List and add Configuration Item.

 

If you need to filter out only available CI's then you need to create Defined Related List.

 

For Incident table or any other ServiceNow table you can create a Defined Related List and to filter only active CI's use code: current.addQuery('active','true');

 

But if you are working on custom table then you need to create Relationships (Defined Related List).

  1. Navigate to System Definition>Relationships
  2. Click New
  3. Name the Relationship and Select your table in Applies To table field.
  4. In Queries form table enter the table you want as in Related List in your table which is CMDB_CI.
  5. You can also put some condition as script as: current.addQuery('active','true'); (Shows only active CI's)
  6. Now save it and go to your table and  Right Click on banner and go to Configure>Related List. Here you will be able to see your relationship name just add it and save it.

 

If i was able to help you out then please mark my answer Helpful as well as Correct.

 

Thanks and Regards:

Utpal Dutta

 

Thank you so much!!!

It was my pleasure to help you out. Thanks Tejaswnini for marking my answer correct and helpful. 

Hi, How to push related links related changes to the other instance?