You need to sign in to do that
Don't have an account?
Sun ShuaiShuai
Rest API execute soql from multiple object that has a relationship
I know how to execute soql to get data from one object.
But I don't know how to execute soql to get data from multiple object that has a relationship like
Thank you very much.
But I don't know how to execute soql to get data from multiple object that has a relationship like
select Name,Phone,Website,Type,(Select Name, Title, Email From Contacts) from Accountso can you tell me how to execute the above soql by rest api?
Thank you very much.
Could you follow this format for your query:
curl https://yourInstance.salesforce.com/services/data/v20.0/query/?q=SELECT+name+from+Account -H "Authorization: Bearer token".
For reference you can also check the following links.
1.https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_query.htm
2. https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_query.htm
Please feel free to let me know if you have any further issues.
Thanks and Regards
Nagarjuna
Greetings to you!
Please refer to the below link which might help you further with the above requirement.
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_relationship_traversal.htm
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas