You need to sign in to do that
Don't have an account?
Sumant Kuchipudi
How to get a field from Parent's another child record?
Hi,
I have custom object which has a Account ( lookup ) and that account has Contact record. How can I get Contact's external Id (custom field) value ? Please advice.
Thanks
I have custom object which has a Account ( lookup ) and that account has Contact record. How can I get Contact's external Id (custom field) value ? Please advice.
Thanks
As you have multiple contacts associated to account, you need to gather all the account ids related to the custom object records.
You can fetch the respective contact (with fields) using SOQL parent child relationship query as below.
Useful SOQL query reference link: https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_relationships_query_using.htm
Hope it helps you.