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
VSK98VSK98 

Query the junction object records

Hi All,

How to query the junction object records?

Regards,
VSK98
Jayant DasJayant Das
A junction object is as good as any other custom object. Use the api name of the object in your SOQL and the fields on the object. E.g., if Account_Contact__c is a junction object, you can use to fetch results by writing a query on the object as - select <fields> from account_contact__c <where clause>
Selva Ramesh 4Selva Ramesh 4
HI,

Please refer the below link to get junction object queries - https://developer.salesforce.com/forums/?id=906F00000008o7tIAA

Thanks,
Selva