---
schema_version: "1"
id: 1f5307ef9158567851f6f0939cede6bba6e5158afd540d0bf1730a162dbe49a1
title: ExternalAccountHierarchy
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_externalaccounthierarchy.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_externalaccounthierarchy.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2cf70f9bc0856adf438acd988b8192b10b48bf92ff17d624ee53bea3c7a9dfbe
description: Represents the external account hierarchy, which works like a role-based hierarchy. Use ExternalAccountHierarchy to allow partner and customer users to share data with other external accounts in their hierarchy.This object is available in API version 49.0 and later.
---
# ExternalAccountHierarchy

Represents the external account hierarchy, which works like a role-based hierarchy. Use ExternalAccountHierarchy to allow partner and customer users to share data with other external accounts in their hierarchy.This object is available in API version 49.0 and later.

## Supported Calls

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

## Special Access Rules

You must have a Partner or Customer Community Plus license.

## Fields

| Field | Details |
| --- | --- |
| AccountId | 
Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the account in the external account hierarchy.



 |
| CurrencyISOCode | 

Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

Possible values are:

- GBP— British Pound
- USD— U.S. Dollar

The default value is USD.





 |
| Description | 

Type

textarea

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The description of the external account hierarchy.



 |
| HierarchyType | 

Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Restricted picklist, Sort

Description

Possible values are:

- CustomerPortal — Customer
- Partner

The default value is Partner.





 |
| IsAccessibleToParent | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Allows data to be shared with parent account in the account hierarchy. The default value is true.



 |
| IsActive | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

When true, the hierarchy is turned on. The default value is false.



 |
| 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

Name of the external account hierarchy.



 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

The ID of the account owner.



 |
| ParentId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The ID of the parent account.



 |