AccountAccountRelation__c

Represents a one-to-one relationship between two accounts, each with a distinct role in relation to the other.

Supported Calls 

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

Fields 

Account__c 

  • Type: reference
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: Account that RelatedAccount__c is related from.

Active__c 

  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Description: Indicates whether the relationship between accounts is active (true) or not (false). The default checkbox value is selected.

EndDate__c 

  • Type: date
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The last date when the two accounts are related.

ExternalId__c 

  • Type: string
  • Properties: Create, Filter, Group, idLookup, Nillable, Sort, Update
  • Description: An external ID that inhibits any duplicate definitions from FromAccount- Role - ToAccount.

InverseRelationship__c 

  • Type: reference
  • Properties: Filter, Group, Nillable, Sort
  • Description: Uniquely identifies the relationship between Account__c and RelatedAccount__c so that it can be referenced by a trigger that creates the inverse relationship record.

Name 

  • Type: string
  • Properties: Create, Defaulted on create, Filter, Group, idLookup, Nillable, Sort, Update
  • Description: The name of the relationship between the accounts. Limit: 255 characters.

OwnerId 

  • Type: reference
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Description: ID of the user who created the relationship record.

RelatedAccount__c 

  • Type: reference
  • Properties: Filter, Group, Nillable, Sort
  • Description: Account that Account__c is related to.

Role__c 

  • Type: reference
  • Properties: Create, Filter, Group, Sort, Update
  • Description: The role of the relationship.

StartDate__c 

  • Type: date
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The first date when the relationship between accounts is valid (not when the object is created).

Usage 

This resource tracks each account’s relationship to the other.