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
r3rr3r 

Soql

Hi All,

 

I have to transfer SalesForce data into java but when i wrote quries on opportunity,opportunitylineitem,account null is coming how to join these  objects help me.

 

hitesh90hitesh90

Hi,

 

Here is the SOQL query for getting OpportunityLineitem and Account from Opportunity.

 

SOQL query:

select id,Accountid, (select id from opportunitylineitems) from Opportunity

 

Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.

Thanks,
Hitesh Patel
SFDC Certified Developer & Administrator

r3rr3r
HI,


Thanks.But when u query it in java you will get null value of
opportunitylineitem