How to fetch Contact details from Opportunity using SOQL in Salesforce?

How to fetch Contact details from Opportunity using SOQL in Salesforce?

Sample Query:


SELECT Id, Opportunity.Name, Opportunity.OrderNumber__c, Opportunity.Approval_Status__c, Contact.Email, Contact.Name FROM OpportunityContactRole


Output:





Cheers!!!

Leave a Reply