---
schema_version: "1"
id: 5e4b59796417c0fe98fbd12c007611a30e6491bb03a197a506718afa08ec2592
title: InternalOrganizationUnit
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_internalorganizationunit.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_internalorganizationunit.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 52a52af720d343a8efcfbf0c57843fe34ad663e048903d93bc6bb8e5eeb293c9
description: 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.
---
# 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 | Details |
| --- | --- |
| Description | 
Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

A description of the organization the Employee is working in.



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



 |
| OrganizationCode | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

Required. The code of the organization the Employee is working in.



 |
| OrganizationName | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The name of the organization the Employee is working in.



 |
| OwnerId | 

Type

reference

Properties

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

Description

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 | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

A reference to the parent organization.



 |
| Type | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

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:

- EXTERNAL\_BUSINESS\_UNIT
- INTERNAL\_ORGANIZATION





 |

## Associated Objects

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

[InternalOrganizationUnitHistory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.") (API version 49.0)

History is available for tracked fields of the object.

[InternalOrganizationUnitOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")

Sharing rules are available for the object.

[InternalOrganizationUnitShare](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.") (API version 49.0)

Sharing is available for the object.

#### See Also

- [_Workplace Command Center for Work.com Developer Guide_: Extend Work.com with Custom Solutions](https://developer.salesforce.com/docs/atlas.en-us.264.0.ajax.meta/workdotcom_dev_guide/wdc_cc_overview.htm "
    Workplace Command Center for Work.com Developer Guide: Extend
    Work.com with Custom Solutions - HTML (New Window)")