Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

REST API to return specified records from child/grandchild object

edited Apr 6, 2021 5:56AM in Sales 8 comments

Summary

Is it possible?

Content

Hi,

In the REST, I'd like to return certain records from child/grandchild collection. Is it possible?

Here is the sample data structure -

Contact (Parent)
--Address (Child)
----Address Purpose (Grand Child)

 

Here is the sample data -

Adam (party#17012)

--100 Main Street

----Bill To

--300 Main Road

----Bill To

----Ship To

 

Here is the contact REST I am using. What should I update in order to return the parts marked in blue above? 

https://url/crmRestApi/resources/latest/contacts?q=PartyNumber='17012'&expand=Address,Address.AddressPurpose&fields=FirstName;Address:Address1,Address2;Address.AddressPurpose:Purpose

 

Thanks,

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!