- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 12:57 PM
Hi ServiceNow Community,
I want to pass the Parent sys_id into related list "New" record in a field,
I have a Training table where each record has related list table that points to a Time Entries table,
When I click on that Time Entries "New" button, I need to have the Training parent record ID in there so I can make relationship between them.
I need to have that parent sys_id in a reference field called "training" from that Time Entrie table.
How can I do that without using AjaxCall or server side call?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2023 10:13 AM
Hi Swarnadeep,
The situation is that it was necessary to build a new Relationship (it does not existed before) so it was not populating by default this data when clicking in New,
I found a solution. It was necessary to add on that Relationship the "Insert callback" code:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 04:18 PM
Hello @Aldo Andrade1,
I think if you define the related list properly form the Configure > Related List and you can see the related list filter, it happens automatically.
So, with a properly defined related list, you can click on "New" and Time Entries record will auto populate with Training record.
Kind Regards,
Swarnadeep Nandy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2023 10:13 AM
Hi Swarnadeep,
The situation is that it was necessary to build a new Relationship (it does not existed before) so it was not populating by default this data when clicking in New,
I found a solution. It was necessary to add on that Relationship the "Insert callback" code: