Topic by Scott Turpin
Content
I have seen several posts on linking custom objects via ROQL with standard objects and returning a specific result set. However using this syntax has not quite worked for me yet when trying to retrieve a custom object and all of it's child objects associated. (set up as an aggregation relationship in the object designer)
Essentially I have a nested objects structure where
coMenu can have several coMenuItemA child objects coMenuItemA can have several coMenuItemB child objects, etc.
Do I need to make several seperate queries, or can I retrieve all of the related columns with one query with the relationship syntax?
I was expecting the code block query to pull the "item" field from the child object "coMenuItemA" where the linked field is menuID.
Am I going about this the wrong way?