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
Raza Syed 26Raza Syed 26 

SOQL query to related object

I need help in writting a SOQL on Account (standard oject) record type ='Partner or Vendor' and pull all the records from related list Standard Object Opportuntiy and custom field 'Partner_Program_source_c' in Opportunity Object.   And also in the same query to pull all record from one more related list  custom object 'Opportunty Vendor' which has a master-detail relationship with Opportunity.

 
venkat-Dvenkat-D
Please go through below link to understand more on relationship queries.
https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_relationships.htm