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 for when the current user last viewed a record related to this record.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed.
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.