Account Relation Input

Input representation of an account relationship.

JSON Example 

1{
2      "relations":[
3         {
4            "type":"Direct",
5            "roleRelationId":"0zlxx000000001dAAA",
6            "relatedAccountId":"001xx000003GYodAAG",
7            "startDate":"2023-06-15T00:00:00.000Z",
8            "endDate":"2023-12-15T00:00:00.000Z",
9            "relatedInverseRecordId":"",
10            "isActive":true,
11            "customFields":{
12               "field1":"field1Value",
13               "field2":"field1Value"
14            }
15         },
16         {
17            "type":"Indirect",
18            "roleRelationId":"0zlxx000000001dGAC",
19            "accountId":"001xx000003GYodACD",
20            "startDate":"2023-02-15T00:00:00.000Z",
21            "endDate":"2023-09-15T00:00:00.000Z",
22            "isActive":true,
23            "customFields":{
24               "field1":"field1Value",
25               "field2":"field1Value"
26            }
27         }
28      ]
29   }

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
aarIdStringRecord ID of the AccountRelationship object.Optional58.0
accountIdStringPrimary account involved in the relationship. If the account relationship type is direct, then Account ID is required.Optional58.0
custom​FieldsMap<String, Object>Custom fields associated with the AccountRelationship object.Optional58.0
endDateStringDate when the account relationship ends.Optional58.0
hierarchy​TypeStringHierarchy among the accounts that are related. For example, an account is related to another account as a parent, a peer, or a child.Optional58.0
isActiveBooleanIndicates whether the account is actively involved with the related account (true) or not (false).Optional58.0
related​AccountIdStringRecord ID of the related account. If the account relationship type is direct, then the related account ID is required.Optional58.0
related​Inverse​RecordIdStringRecord ID of the related inverse relationship record.Optional58.0
role​Relation​IdStringRecord ID of the party role relationship.Required58.0
startDateStringDate when the account relationship starts.Optional58.0
typeStringType of account relationship, such as a direct or indirect relationship. The default value is false. If the related​Inverse​RecordId property is specified, then the relationship type is indirect.Optional58.0