---
schema_version: "1"
id: 3be733f84984c1a4eb63be12e27c01c9d8d66d6b0a5ba788331d3006329addb4
title: wkfsl__Shift_Management_Metric__c
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/workdotcom_dev/guides/wkfsl-sforce-api-objects-wkfsl__shift-management-metric__c.md
canonical_url: https://developer.salesforce.com/docs/service/workdotcom-dev/guide/wkfsl-sforce-api-objects-wkfsl__shift-management-metric__c.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 05e407b04d44c6404797fb7d56cee8aebb7a9ad70520c8cd860300ad1e8e7a0a
products:
  - Work.com Developer Guide
  - Service Cloud Developer Content
---

# wkfsl\_\_Shift_Management_Metric\_\_c

Stores metrics that summarize shift data such as available employees and planned occupancy. Each record stores calculated shift data associated with a location and scoped to the current day. This object is installed as a part of the Shift Management managed package. This object is available in API version 48.0 and later.

## Supported Calls

`create()`, `delete()`, `describeLayout()`, `describeSObjects()`, `getDeleted()`, `getUpdated()`, `query()`, `retrieve()`, `search()`, `undelete()`, `update()`, `upsert()`

## Fields

| Field                             | Type      | Properties                                                                   | Description                                                                                                                                                                                         |
| --------------------------------- | --------- | ---------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name                              | string    | Create, Defaulted on create, Filter, Group, idLookup, Nillable, Sort, Update | The name of this metric.                                                                                                                                                                            |
| 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 who ran create().                                                                                 |
| wkfsl\_\_Allocated_Occupancy\_\_c | double    | Create, Filter, Nillable, Sort, Update                                       | Capacity count from the facility plan on the provided date.                                                                                                                                         |
| wkfsl\_\_Assigned_Shifts\_\_c     | double    | Create, Filter, Nillable, Sort, Update                                       | Number of active service appointments that are Dispatched, In Progress, Completed, or Accepted on the service territory and its child territories.                                                  |
| wkfsl\_\_Available_Employees\_\_c | double    | Create, Filter, Nillable, Sort, Update                                       | Number of active employees who submitted availability and stated that they are available.                                                                                                           |
| wkfsl\_\_Calculated_as_of\_\_c    | dateTime  | Create, Filter, Nillable, Sort, Update                                       | The date and time when this metric was calculated.                                                                                                                                                  |
| wkfsl\_\_Date\_\_c                | date      | Create, Filter, Group, Nillable, Sort, Update                                | The date of the shift for which we’re calculating data.                                                                                                                                             |
| wkfsl\_\_Eligible_Employees\_\_c  | double    | Create, Filter, Nillable, Sort, Update                                       | The number of eligible employees.                                                                                                                                                                   |
| wkfsl\_\_Location\_\_c            | reference | Create, Filter, Group, Nillable, Sort, Update                                | Reference to the location.                                                                                                                                                                          |
| wkfsl\_\_Maximum_Occupancy\_\_c   | double    | Filter, Nillable, Sort                                                       | The maximum occupancy for the location.                                                                                                                                                             |
| wkfsl\_\_Service_Territory\_\_c   | reference | Create, Filter, Group, Nillable, Sort, Update                                | The service territory associated with this metric.                                                                                                                                                  |
| wkfsl\_\_Total_Shifts\_\_c        | double    | Create, Filter, Nillable, Sort, Update                                       | The number of service appointments that were created for the service territory based on the facility plan. This value can include assigned and unassigned shifts and matches the planned occupancy. |
