Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

How to create a relationship between 2 related lists?

Kiran_25
Tera Expert

I want to create a relationship between two related lists. 

On Change records there is a related list which displays all approvers for the record, including business owners. I have created a new related list which will only show the Business Owner approval for the CI item that the change request relates to. How can I achieve this? 

 

Or alternatively, is there a better way to achieve this outcome?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@Kiran_25 

you can create a new defined relationship.

Applies to Table - Change Request

Queries from - Approval

Script:

// get the approvers for this CHG

// get the CI for this CHG

// how are you determining the approver with CI?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@Kiran_25 

you can create a new defined relationship.

Applies to Table - Change Request

Queries from - Approval

Script:

// get the approvers for this CHG

// get the CI for this CHG

// how are you determining the approver with CI?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

This worked, thanks! Do you know if there is a way i can display the impacted CI information in this related list too?

@Kiran_25 

the related list shows Approvers then it can't show CI as the table is different.

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