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
tlaurietlaurie 

getting contact information

I am able to get Opportunity information through the API, but need to be able get contact information.  Any ideas?
Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell
It works exactly the same way, just use the contact sobject instead of the opportunity sobject.

All Answers

SuperfellSuperfell
It works exactly the same way, just use the contact sobject instead of the opportunity sobject.
This was selected as the best answer
tlaurietlaurie
Let m be more clear.  I need to get the contact information associated with an opportunity.  I'm assuming that I can somehow get a list of contact primary keys from any particular opportunity?
SuperfellSuperfell
See the OpportunityContactRole object. You might find the ERD in the API docs useful for understanding the schema for the standard objects.