Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
REST API to return specified records from child/grandchild object — Cloud Customer Connect
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

Accepted answer
19
Views
8
Comments
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!