AccountAccountRelation
Represents a relationship between accounts, such as a relationship between a
business account and a household account. This object is available in API version 57.0
and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()
Fields
AccountId
- Type: reference
- Properties: Create, Filter, Group, Sort, Update
-
Description: ID of the account associated with this account account
relationship.
This field is a relationship field.
- Relationship Name: Account
- Relationship Type: Lookup
- Refers To: Account
EndDate
- Type: date
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The date when the relationship ends.
HierarchyType
- Type: picklist
- Properties: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- Description: Specifies the hierarchy between accounts that are related. For example, an account is related to another account as a parent, peer, or child.
- Default value: Parent
-
Possible values:
- Child
- Parent
- Peer
IsActive
- Type: boolean
- Properties: Create, Defaulted on create, Filter, Group, Sort, Update
- Description: Indicates whether the account is actively involved with the related account.
- Default value: false
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 (<parmname>LastReferencedDate</parmname>) but not viewed it.
Name
- Type: string
- Properties: Autonumber, Defaulted on create, Filter, idLookup, Sort
- Description: Name of the account account relationship.
OwnerId
- Type: reference
- Properties: Create, Defaulted on create, Filter, Group, Sort, Update
-
Description: ID of the owner of this object.
This field is a polymorphic relationship field.
- Relationship Name: Owner
- Relationship Type: Lookup
- Refers To: Group, User
PartyRoleRelationId
- Type: reference
- Properties: Create, Filter, Group, Sort, Update
-
Description: The relationship between two accounts.
This field is a relationship field.
- Relationship Name: PartyRoleRelation
- Relationship Type: Lookup
- Refers To: PartyRoleRelation
RelatedAccountId
- Type: reference
- Properties: Create, Filter, Group, Sort, Update
-
Description: The related account in the relationship.
This field is a relationship field.
- Relationship Name: RelatedAccount
- Relationship Type: Lookup
- Refers To: Account
RelatedInverseRecordId
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
-
Description: The record that specifies the inverse relationship between the
accounts.
This field is a relationship field.
- Relationship Name: RelatedInverseRecord
- Relationship Type: Lookup
- Refers To: AccountAccountRelation
StartDate
- Type: date
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The date when the relationship starts.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.
- AccountAccountRelationChangeEvent (API Version 63.0)
- Change events are available for the object.
- AccountAccountRelationFeed
- Feed tracking is available for the object.
- AccountAccountRelationHistory
- History is available for tracked fields of the object.
- AccountAccountRelationOwnerSharingRule
- Sharing rules are available for the object.
- AccountAccountRelationShare
- Sharing is available for the object.