The CreatorCon Call for Content is officially open! Get started here.

How to map the record from form field to related list

Anupriya_11
Tera Contributor

Hi , i have requirement  to map the  parent field record to be mapped in related list tab (related requested item).

can someone help me on this. Thanks!

 

Anupriya_11_0-1698991914995.png

i have used the below Query  and it is pulling the current record instead of parent record.

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

Anupriya_11_3-1698992299651.png

 

 

1 ACCEPTED SOLUTION

Hi @Anupriya_11 ,
In below example i am showing services in related list link to incident in incident Service field is reference 

Check applies to table and queries from table is correctly designed and script modify as per your requirment
current.addQuery('sys_id', parent.parent.sys_id);

AnandKumarP_0-1699007906464.png

AnandKumarP_1-1699008329593.png

 

AnandKumarP_2-1699008349433.png

Thanks,

Anand

 

View solution in original post

4 REPLIES 4

Anand Kumar P
Giga Patron

Hi @Anupriya_11 ,

Try this
current.addQuery('parent', parent);

Please mark it as solution proposed and helpful if its serves your purpose.
Thanks,

Anand

Anupriya_11
Tera Contributor

Hi @Anand Kumar P 

Tried this
current.addQuery('parent', parent);

no it is not working ,Showing the tab empty.

Tru below one

current.addQuery('parent', parent.parent.sys_id);
Thanks,

Anand

Hi @Anupriya_11 ,
In below example i am showing services in related list link to incident in incident Service field is reference 

Check applies to table and queries from table is correctly designed and script modify as per your requirment
current.addQuery('sys_id', parent.parent.sys_id);

AnandKumarP_0-1699007906464.png

AnandKumarP_1-1699008329593.png

 

AnandKumarP_2-1699008349433.png

Thanks,

Anand