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
Aaron RuderAaron Ruder 

How to get an API for a related list?

I enabled multiple accounts on contacts. It created a related list called "Related Accounts" and I need the name to plug in some triggers. A selection statement for child relationships on Contact  didn't work.
Nathan E.Nathan E.
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_accountcontactrelation.htm
Aaron RuderAaron Ruder
Thanks Nathan. I think I need to do a describeLayout() call on the contact layout to ge the name of the Related Accounts array. I tried finding examples of this so I can fix my selection statement but no luck.