---
schema_version: "1"
id: 70e8ec885b34adeb0a7a3a8b7ef86dfb2072c8940a10c046e8223645a80b6b5d
title: WorkforceCapacityUnit
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_workforcecapacityunit.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_workforcecapacityunit.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1c2e1af343f97436b62d7a6d31e2bd90ac47a9a23ecfe6113afc8fe7f72ae547
description: Represents the number of resources allocated or needed for a specific set of work items at a timestamp within a specific duration. This object is available in API version 51.0 and later.
---
# WorkforceCapacityUnit

Represents the number of resources allocated or needed for a specific set of work items at a timestamp within a specific duration. This object is available in API version 51.0 and later.

## Supported Calls

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

## Special Access Rules

The org must have the Workforce Engagement license. To view, create, edit, or delete records, the user must have the Workforce Engagement Analyst permission set.

## Fields

| Field | Details |
| --- | --- |
| AssignedTotalCount | 
Type

double

Properties

Create, Filter, Nillable, Sort

Description

The number of shifts assigned at specific time period.



 |
| AvailableTotalCount | 

Type

double

Properties

Create, Filter, Nillable, Sort

Description

The total number of shifts scheduled at a specific time period.



 |
| Capacity | 

Type

double

Properties

Create, Filter, Nillable, Sort

Description

Staffing prediction for a capacity plan. This field is available in API version 54.0 and later.



 |
| DateTime | 

Type

dateTime

Properties

Create, Filter, Sort, Update

Description

The timestamp of the data point.



 |
| IsOmni | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Derived from the isOmni field on WorkforceCapacity. Indicates that the workload is Omni-based.

The default value is 'false'.



 |
| IsShiftTemplateNonStandard | 

Type

boolean

Properties

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

Description

Indicates whether the shift template that’s used at a specific time period is a non-standard shift. This field is available in API version 53.0 and later.

The default value is false.



 |
| JobProfileName | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The derived field from the WorkDemographic SkillSet field.



 |
| MaxCount | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort

Description

The max number of resources allocated or needed at a specific time period.



 |
| MeasureUnit | 

Type

picklist

Properties

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

Description

The time interval (in minutes) used in capacity plans.

Possible values are:

- 43200—Monthly for long-term capacity plans. This value is available in API version 54.0 and later.
- 10080—Weekly
- 1440—Daily
- 60—Hourly
- 30—30 minutes. Reserved for future use.
- 15—15 minutes. Reserved for future use.

The default value is '1440'.



 |
| OriginalTotalCount | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort

Description

The original total number of resources allocated or needed at specific time period calculated from the planning process.



 |
| ResourceGap | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

Represents the resource gap between the available and required resources.



 |
| ServiceTerritoryName | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The derived field from the WorkDemographic Region field.



 |
| ShiftTemplateDuration | 

Type

double

Properties

Create, Filter, Nillable, Sort, Update

Description

The duration of the shift template that’s used at a specific time period. This field is available in API version 53.0 and later.



 |
| ShiftTemplateDurationType | 

Type

picklist

Properties

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

Description

Indicates whether the duration of the shift template that’s used at a specific time period is in minutes or hours. This field is available in API version 53.0 and later.

Possible values are:

- H—Hours
- M—Minutes

The default value is H.



 |
| ShiftTemplateId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The ID of the shift template that’s used at a specific time period. This field is available in API version 53.0 and later.

This is a relationship field.

Relationship Name

ShiftTemplate

Relationship Type

Lookup

Refers To

ShiftTemplate



 |
| ShiftTemplateJobProfile | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The job profile that relates to the shift template that’s used at a specific time period. This field is available in API version 53.0 and later.



 |
| ShiftTemplateName | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Name of the shift template that’s used at a specific time period. This field is available in API version 53.0 and later.



 |
| ShiftTemplateStartTime | 

Type

time

Properties

Create, Filter, Nillable, Sort, Update

Description

The start time of the shift template that’s used at a specific time period. This field is available in API version 53.0 and later.



 |
| TotalCount | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

The total number of resources allocated or needed at specific time period. It represents the updated count after the adjustment. This value is the same as OriginalTotalCount if no adjustments were made.

This is a calculated field.



 |
| WorkDemographicId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The foreign key to WorkDemographic object.

This is a relationship field.

Relationship Name

WorkDemographic

Relationship Type

Lookup

Refers To

WorkDemographic



 |
| WorkforceCapacityId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The foreign key to WorkCapacity object.

This is a relationship field.

Relationship Name

WorkforceCapacity

Relationship Type

Lookup

Refers To

WorkforceCapacity



 |