Object Reference for the Salesforce Platform
Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
AccountPartner
This object is completely distinct from and independent of Account records that have been enabled for the partner portal.
Note
Supported Calls
create(), delete(), describeLayout()describeSObjects(), query(), retrieve()
Fields
| Field | Details |
|---|---|
| AccountFromId |
|
| AccountToId |
|
| IsPrimary |
|
| OpportunityId |
|
| ReversePartnerId |
|
| Role |
|
Creating an Account-Account Partner Relationship
When you create a partner relationship between two accounts (when you create a Partner record and specify the AccountFromId), the API automatically creates two AccountPartner records, one for the forward relationship and one for the reverse. For example, if you create a Partner relationship with “Acme, Inc.” as the AccountFromId and “Acme Consulting” as the AccountToId, the API automatically creates two AccountPartner records:
- The forward relationship AccountPartner with “Acme, Inc.” as the AccountFromId and “Acme Consulting” as the AccountToId.
- The reverse relationship AccountPartner with “Acme Consulting” as the AccountFromId and “Acme, Inc.” as the AccountToId.
- The value of the Role field in the reverse relationship AccountPartner is set to the PartnerRole record ReverseRole value associated with the value of the Role field in the forward relationship AccountPartner.
This mapping allows the API to manage the records and their relationships efficiently.