---
schema_version: "1"
id: 3755ed146d4be7f89a3d23f50a9d3da66844dc62bbf4438662fea93269db31bb
title: wkplan__CrisisMetricThreshold__c
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/workdotcom_dev/guides/wkplan-sforce-api-objects-wkplan__crisismetricthreshold__c.md
canonical_url: https://developer.salesforce.com/docs/service/workdotcom-dev/guide/wkplan-sforce-api-objects-wkplan__crisismetricthreshold__c.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 992b2cee51fd1d012d83a43d2d9eeade79f26945c2b3e2277a4abf89b1f61841
products:
  - Work.com Developer Guide
  - Service Cloud Developer Content
---

# wkplan\_\_CrisisMetricThreshold\_\_c

Defines your organization's threshold values for every crisis metric. By default, Workplace Strategy Planner allows location opening and closing thresholds. The metric data value for each location is evaluated by the threshold values to determine its risk level and whether the location can be considered for either opening or closing. This object is installed as a part of the Workplace Strategy Planner managed package. This object is available in API version 50.0 and later.

## Supported Calls

`create()`, `delete()`, `describeLayout()`, `describeSObjects()`, `getDeleted()`, `getUpdated()`, `query()`, `retrieve()`, `search()`, `undelete()`, `update()`, `upsert()`

## Fields

| Field                           | Type      | Properties                                                                   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ------------------------------- | --------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 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. A null value can mean the record was only referenced and not viewed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Name                            | string    | Create, Defaulted on create, Filter, Group, idLookup, Nillable, Sort, Update | The name of a crisis metric.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| wkplan\_\_CrisisMetric\_\_c     | reference | Create, Filter, Group, Sort                                                  | The crisis metric to which a threshold belongs. This field refers to the custom object Crisis Metric.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| wkplan\_\_DefaultValueText\_\_c | string    | Create, Filter, Group, Nillable, Sort, Update                                | Stores the default value for the text display of wkplan\_\_DefaultValue\_\_c. The default value displays only when the threshold values aren’t customized in your org.                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| wkplan\_\_DefaultValue\_\_c     | double    | Create, Filter, Nillable, Sort, Update                                       | The default value for a metric threshold in Workplace Strategy Planner. The default values are intended only to demonstrate the app features and capabilities. Customize metric threshold values in your org before using Workplace Strategy Planner.                                                                                                                                                                                                                                                                                                                                                                                      |
| wkplan\_\_DisplayTextLabel\_\_c | string    | Create, Filter, Group, Nillable, Sort, Update                                | A reference to the label used for translating the display text. This field is used by Salesforce for translating labels from English into other supported languages. This field shouldn’t be edited.                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| wkplan\_\_DisplayText\_\_c      | string    | Create, Filter, Group, Nillable, Sort, Update                                | Display text for a metric threshold to display in the Workplace Strategy Planner app. For example, `Less Than {value} per 100,000`. The display text can be an integer, percent, or text string.                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| wkplan\_\_IsLowerThreshold\_\_c | boolean   | Create, Defaulted on create, Filter, Group, Sort, Update                     | Indicates whether the value of the field wkplan\_\_Value\_\_c is lower than the threshold value. For example, if data for a crisis metric associated with a location is greater than or equal to the wkplan\_\_Value\_\_c of the opening threshold and the wkplan\_\_IsLowerThreshold\_\_c is set to `true`, the location is considered low risk and can be a candidate for opening. If the current metric data for a location is greater than or equal to the wkplan\_\_Value\_\_c of the closing threshold whenwkplan\_\_IsLowerThreshold\_\_cis set to `true`, the location is considered high risk and can be a candidate for closing. |
| wkplan\_\_Type\_\_c             | picklist  | Create, Filter, Group, Restricted picklist, Sort, Update                     | The type of crisis metric threshold. The threshold type indicates the action or response to take when a threshold is reached.The default values are:<ul><li>`Closing`</li><li>`Opening`</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| wkplan\_\_Value\_\_c            | double    | Create, Filter, Nillable, Sort, Update                                       | The numeric value of a threshold. When the data value for a metric is greater than or equal to this field value and wkplan\_\_IsLowerThreshold\_\_c is set to `true`, the metric for that location is categorized into the appropriate risk level or threshold recommendation. See the field wkplan\_\_IsLowerThreshold\_\_c for more information.                                                                                                                                                                                                                                                                                         |

## Usage

Crisis metric thresholds allow your organization to set a range for the data values associated with each wkplan\_\_CrisisMetric\_\_c. When a data value for a metric associated with a location reaches a threshold, Workplace Strategy Planner categorizes the metric for that location as low, medium, or high risk. By default, the thresholds in Workplace Strategy Planner indicate when an organization should consider opening or closing a workplace location.

Set threshold values in your org. If a threshold value isn’t set for any metric, the default value is used to calculate the risk level for that metric in the dashboard. For information on how crisis metric thresholds are used in Workplace Strategy Planner, see Salesforce Help: How Risk Are Levels Calculated..

**See Also**

- [wkplan\_\_CrisisMetric\_\_c](https://developer.salesforce.com/docs/service/workdotcom-dev/guide/wkplan-sforce-api-objects-wkplan__crisismetric__c.md)
- [wkplan\_\_LocationAssessment\_\_c](https://developer.salesforce.com/docs/service/workdotcom-dev/guide/wkplan-sforce-api-objects-wkplan__locationassessment__c.md)

- [wkplan\_\_CrisisMetric\_\_c](https://developer.salesforce.com/docs/service/workdotcom-dev/guide/wkplan-sforce-api-objects-wkplan__crisismetric__c.md)
