The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to add the parent record in the child record related list using scripted relationships?

PratikK098
Tera Contributor

My requirement: Need to add the parent Case record to the Child SIR-related list. if anyone knows how to add it using relationship please help me with it. Thanks in advanced!

 

 

2 REPLIES 2

swathisarang98
Giga Sage
Giga Sage

Hi @PratikK098 ,

 

You can try to create a relationship i tried something similar for change and release table please refer the below,

 

swathisarang98_1-1710357624812.png

 

Here current belongs to Queries from Table , so in change table there should be reference record which is capturing release record number (reference field)

 

Parent is release table record so we have to query something like below

 

current.addQuery('u_release_record.number', parent.number);

 

So Related list will be created for 'Applies to table' which is release.

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

Hi @swathisarang98 , 

 There is no such reference field present in the case form for the SIR record. We are trying to create the SIR record from the Case record. So here Case is the parent record for SIR. The requirement is to show the SIR record in the Case form as there is no such reference field present for SIR record in Case form.