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