Create new button on related list not linking

juan9
Giga Guru

Hello experts.

 

I am trying to configure the 'New' button on a related list.

The goal is to link the parent and child records so that when I click on 'New', the parent's record information is passed to the child record.

the parent table name is :: x_337431_vendor_ma_order

the child tables name is :: x_337431_vendor_ma_vendor_proposal

 

I tried to follow this article:: https://community.servicenow.com/community?id=community_question&sys_id=96a2c7de1b468954ed6c9979b04bcbff

but no luck

 

here is what I tried::

find_real_file.png

 

here is the parent-child records::

find_real_file.png

NOTE: The reason why the name of the button is 'New4' is because I was looking to see which button was driving that action on another table. I found the button but realize that I needed to something else since the functionality is already there, I just need to create a correct UI parameter

 

 

The reference field in the child table is 'order_reference'

find_real_file.png

1 ACCEPTED SOLUTION

AnubhavRitolia
Mega Sage
Mega Sage

Hi Juan,

If this is new related list, your Script query should filter parent field with your parent table.

Also can you confirm what is the Reference Table of Parent field in your child table 'x_337431_vendor_ma_vendor_proposal'. If it is your desired Parent table only, it should take automatically what I believe.

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

View solution in original post

2 REPLIES 2

AnubhavRitolia
Mega Sage
Mega Sage

Hi Juan,

If this is new related list, your Script query should filter parent field with your parent table.

Also can you confirm what is the Reference Table of Parent field in your child table 'x_337431_vendor_ma_vendor_proposal'. If it is your desired Parent table only, it should take automatically what I believe.

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

I added a screenshot

 

The reference field in the child table is 'order_reference'