# InternalOrganizationUnit

Represents an organization that an Employee belongs to. This object is available in API version 48.0 and later. In API version 49.0 and later, this object supports reports, criteria-based sharing rules, and history tracking, plus you can exclude individual fields from custom page layouts.

## Supported Calls

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

## Special Access Rules

To access this object, you have either a Workplace Command Center permission set license and the Provides access to Workplace Command Center features system permission, or the Employee Management and Employee User add-on licenses. This object is also available with the Referral Marketing license.

## Fields

| Field                | Type      | Properties                                                         | Description                                                                                                                                                                                                                         |
| -------------------- | --------- | ------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Description          | string    | Create, Filter, Group, Nillable, Sort, Update                      | A description of the organization the Employee is working in.                                                                                                                                                                       |
| LastReferencedDate   | dateTime  | Filter, Nillable, Sort                                             | The timestamp for when the current user last viewed a record related to this record.                                                                                                                                                |
| LastViewedDate       | dateTime  | Filter, Nillable, Sort                                             | 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.                                                            |
| OrganizationCode     | string    | Create, Filter, Group, idLookup, Sort, Update                      | Required. The code of the organization the Employee is working in.                                                                                                                                                                  |
| OrganizationName     | string    | Create, Filter, Group, Nillable, Sort, Update                      | The name of the organization the Employee is working in.                                                                                                                                                                            |
| OwnerId              | reference | Create, Defaulted on create, Filter, Group, Sort, Update           | The ID of the user who currently owns this record. Default value is the user logged in to the API to perform the create operation.                                                                                                  |
| ParentOrganizationId | reference | Create, Filter, Group, Nillable, Sort, Update                      | A reference to the parent organization.                                                                                                                                                                                             |
| Type                 | picklist  | Create, Filter, Group, Nillable, Restricted picklist, Sort, Update | Specifies whether the record is for an internal or an external organization. This field is available in API version 60.0 and later. Possible values are: <ul><li>`EXTERNAL_BUSINESS_UNIT`</li><li>`INTERNAL_ORGANIZATION`</li></ul> |

## Associated Objects

This object has the following associated objects. Unless noted, they are available in the same API version as this object.

- InternalOrganizationUnitHistory (API version 49.0)

  - : History is available for tracked fields of the object.

- InternalOrganizationUnitOwnerSharingRule

  - : Sharing rules are available for the object.

- InternalOrganizationUnitShare (API version 49.0)

  - : Sharing is available for the object.
