OpportunityPartner

This read-only object represents a partner relationship between an Account and an Opportunity. This object is automatically created when a Partner object is created for a partner relationship between an account and an opportunity.

Supported Calls

describeSObjects(), query(), retrieve()

Fields

Field Details
AccountToId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the partner Account in the partner relationship.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted.
IsPrimary
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the account is the opportunity’s primary partner (true) or not (false). Label is Primary.
OpportunityId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Opportunity that is in the partner relationship.
Role
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
The UserRole that the Account has on the Opportunity. For example, Reseller or Manufacturer.

Creating an Account-Opportunity Partner Relationship

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.

See Also