I'm attempting to access a grandchild object.
I have 3 Objects,
Opportunity,
Quote,
QuoteLineItems,
Opportunity is a Parent to Quote and Quote is a Parent to QuoteLineItems.
Unfortunately, writing a query for this is proving challenging. I'm using Force.com explorer and there's no direct relationship from Opportunity to QuoteLineItems. You can can only nest Select statements one level deep.
I'm looking to write a query that will grab all the fields from these object (I can manually enter the fields) but I'm not sure how the join logic works.
Select ID, (Select ID From Quotes) From Opportunity.
Somehow I need to join in the Quotelineitems in this query.
Any thoughts?