Parent child relationship in a change request

Akanksha24
Kilo Contributor

I need to create a report for the customer where if Change record has child records , I need to get the count of child records.

FIlters are : Parent record has CI "ABC" and planned end date at or after today.

Customer wants the same in List view. I explained him thru Pivot table but he is not convinced.

I have attached one example screenshot where parent has 2 child records.

Please suggest if it is possible through Database view or any other method

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Akanksha,

you can try using self join on your change_request table and create database view

refer below links for help

https://community.servicenow.com/community?id=community_question&sys_id=81d117addbdcdbc01dcaf3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=a1d295eddbfc5490f7fca851ca96...

Regards
Ankur

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

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Akanksha,

you can try using self join on your change_request table and create database view

refer below links for help

https://community.servicenow.com/community?id=community_question&sys_id=81d117addbdcdbc01dcaf3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=a1d295eddbfc5490f7fca851ca96...

Regards
Ankur

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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Akansha,

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate answer as correct & helpful to close the thread.

If not, please let us know if you need some more assistance.

Regards
Ankur

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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Akansha,

If my reply helped and your query is resolved please close the thread by marking appropriate reply as correct and helpful so that others can be benefited by this.

Regards
Ankur

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