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
jf317820jf317820 

Grab parent record and all associated "children"

Does anyone know an effective method to pull a parent record and all its assocated children and grandchildren?

For example, I have an opportunity, but within the opportunity there are maybe 3 or 4 hierarchical levels of data in custom objects...is this just a matter of doing a bunch of queries?

Thanks in advance.
Ron HessRon Hess
with carefully constructed relationship query, it should be one query
details are here

jf317820jf317820
thanks Ron, I've been reluctant to delve into the soql-r docs for fear of becoming ensconced...but I'll get on it.