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
gubsgubs 

Fetch QueryResult from MessageElement get_any ?

Hi,

 

I am using Relationship query to fetch opportunity and opportunity line item. When i passed the query i get queryResult. From the queryresult i got specific record for a Opportunity which has getId and get_any contains all the message element.

 

In the message element one of the element i have QueryResult of relationship query(OpportunityLineItems). CAn someone guide me how to get the queryResult and get the specific records and process the same ?

 

Thansk in advance.

 

Thanks,

Gubs

Best Answer chosen by Admin (Salesforce Developers) 
gubsgubs

Hi All,

 

I found a solution. Thanks. From the messageelement get_any field i tried (QueryResult) field.getObjectValue(); I got queryResult and i loop through to opportunity line item Values

 

Thanks,

Gubs