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

SELECT Id, Opportunity.Name, Contact.Email, Contact.Name, Role, isPrimary FROM OpportunityContactRole Where OpportunityId =’OpportunityID’

OpportunityID – place the opportunity id

Opportunity Contact Role Output:

OpportunityContactRole Object Field Details:





How To Get The Opportunity Contact Role Details In Salesforce Email Template?

Written by 

3x Salesforce MVP | Platform Champion | 18x Salesforce Certified | MuleSoft Certified | 8x Trailhead Ranger | TechForce Services | Sydney | Australia

Leave a Reply

Your email address will not be published.