Newer Version Available

This content describes an older version of this product. View Latest

AccountRelationship

Represents a relationship of a given type between two accounts. This object is available in API version 45.0 and later.

Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()

Special Access Rules

In Community Settings, turn on the Enable Account Relationships org preference, which is off by default.

Fields

Field Details
AccountFromID
Type
reference
Properties
Create, Filter, Group, Sort,
Description
ID of the account that will gain access to data from AccountTo.
AccountToId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the account sharing data with AccountFrom.
LastReferencedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp when the current user last accessed this record, a record related to this record, or a list view.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.
Name
Type
string
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
The name of the account relationship.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the user who created the account relationship.
Type
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
The relationship type. All account relationship sharing rules of that type will be applied to this account relationship.
Standard values are:
  • System Integrator
  • Agency
  • Advertiser
  • Reseller
  • Distributor
  • Developer
  • Broker
  • Lender
  • Institution
  • Contractor
  • Dealer
  • Consultant
  • Client
  • Vendor
  • Agent
  • Retailer
  • SubContractor
  • Supplier
Picklist items can be updated with your own values.

Associated Objects

This object has the following associated objects. Unless noted, they are available in the same API version as this object.

AccountRelationshipFeed
Feed tracking is available for the object.
AccountRelationshipHistory
History is available for tracked fields of the object.
AccountRelationshipOwnerSharingRule
Sharing rules are available for the object.
AccountRelationshipShare
Sharing is available for the object.