function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

custom link button in related list

Hi all , I need help figuring this out.
Contact has a lookup field called topParent to account. Also, Contact is associated to an account.
I have a related list on contact  called "REQUEST" . I have to overirde the new button in this related list.
When I create custom new button for this related list how will I access the "channel"  on account object  through topParent lookup field relationship .

I did sosql query   select  Contact.topParent __r.channel__c from contact where id='003E000000XWVGZ'  and I can get channel field data.   I'm not sure why I cannot get the channel  in the custom button  by doing {!Contact.topParent __r.channel__c }