How to populate a Related List on a form?

Sid_Takali
Kilo Patron
Kilo Patron

Hii all,

just for a curiosity I want to understand how to populate a related list on a form when a certain field value is selected.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can use after update BR on your parent table and then insert record into related list table

Can you share what did you start with and where are you stuck?

Regards
Ankur

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

View solution in original post

6 REPLIES 6

Martin Ivanov
Giga Sage
Giga Sage

Related lists are list view of another table, embeded in your form. They are usually listing records that have reference to the current record. To have data in our related list, there must be records in the target table, that are referencing the record, currently being open. e.g. You have a problem record, and you have outage related list. This will show all the outages, that are related (caused by) to this problem (if any).

You can also create custom relationships, but it is a bit harder.

Read here the docs about related lists.

Read here about scripted relationships.

Please mark Correct and Helpful if my answer helps you resolve your issue. Thanks!
Martin Ivanov
Community Rising Star 2022


Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024

Community Alums
Not applicable

Hi @Siddharam Takali ,

You can use this example code and learn how it actually works :

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

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

Community Alums
Not applicable

Hi @Siddharam Takali ,

Any update to this ?Any follow-up required? if not

Kindly mark the answer as Correct & Helpful both such that others can get help.

Thanks,
Sandeep

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can use after update BR on your parent table and then insert record into related list table

Can you share what did you start with and where are you stuck?

Regards
Ankur

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