Represents a partner relationship between two Account records or between an Opportunity and an Account.
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
In the Salesforce user interface, system administrators can set up the valid role values and their corresponding reverse role values in the PartnerRole object. Each account in the relationship is assigned a Role (such as Consultant or Distributor) designating that account’s role towards the related account or opportunity.
When you create a partner relationship between an account and an opportunity (when you create a Partner object and specify the OpportunityId field), the API automatically creates an OpportunityPartner with the corresponding values:
This mapping allows the API to manage the objects and their relationship efficiently.
When you create a partner relationship between two accounts (when you create a Partner object and specify the AccountFromId), the API automatically creates two AccountPartner objects, one for the forward relationship and one for the reverse. For example, if you create a Partner object with “Acme, Inc.” as the AccountFromId and “Acme Consulting” as the AccountToId, the API automatically creates two AccountPartner objects:
This mapping allows the API to manage the objects and their relationship efficiently.