Skip to Content

TheBlogReaders.com

Salesforce.com, PHP, MySQL, Javascript, Ajax, Htacces

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

Be First!

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

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

Here:
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?

(5)

Previous
Next

Leave a Reply