Newer Version Available
OpportunityPartner
This object represents a partner relationship between an Account and an Opportunity. An OpportunityPartner record is created automatically when a Partner record is created for a partner relationship between an account and an opportunity.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Creating an Account-Opportunity Partner Relationship
When you create a partner relationship between an account and an opportunity (when you create a Partner record and specify the OpportunityId field), the API automatically creates an OpportunityPartner record with the corresponding values:
- The value of the Partner field AccountToId maps to the value of the OpportunityPartner field AccountToId.
- The values of the OpportunityId, Role, and IsPrimary fields in both records are the same.
- If you set the IsPrimary value to 1 (true) upon insert of a new OpportunityPartner, the IsPrimary value is automatically set to 0 (false) for any existing primary partners for that opportunity.
This mapping allows the API to manage the records and their relationships efficiently.