---
schema_version: "1"
id: f2e486ca7f3effdf6d1b43c7b187f246938faf78a3a8afcef51f478a7190daa0
title: wkcc__LocationWellnessAggregation__c
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/workdotcom_dev/guides/wdc-cc-sforce-api-objects-wkcc__locationwellnessaggregation__c.md
canonical_url: https://developer.salesforce.com/docs/service/workdotcom-dev/guide/wdc-cc-sforce-api-objects-wkcc__locationwellnessaggregation__c.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6778f3644be0fd32a02e445f117760716a85435771489656ac23f2f745b33fac
products:
  - Work.com Developer Guide
  - Service Cloud Developer Content
---

# wkcc\_\_LocationWellnessAggregation\_\_c

Aggregates wellness counts by location and status of employees directly linked to a location. This object is available in orgs that have Workplace Command Center version 4.2 and later installed.

## Supported Calls

`create()`, `delete()`, `describeLayout()`, `describeSObjects()`, `getDeleted()`, `getUpdated()`, `query()`, `retrieve()`, `undelete()`, `update()`, `upsert()`

## Fields

| Field                                      | Type      | Properties                                               | Description                                                                                                                                                                                                                                                      |
| ------------------------------------------ | --------- | -------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name                                       | string    | Autonumber, Defaulted on create, Filter, idLookup, Sort  | The record name.                                                                                                                                                                                                                                                 |
| 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 to perform the create.                                                                                                                                         |
| wkcc\_\_ExternalId\_\_c                    | string    | Create, Filter, Group, idLookup, Sort, Update            | A unique identifier for the record in the format `["Cascade" + ":" +] <Location Id> + ‘:’ + <Wellness Status>`. The cascade prefix is only present in records that include child location wellness status values. This field is unique within your organization. |
| wkcc\_\_LocationIndividualCount\_\_c       | double    | Create, Defaulted on create, Filter, Sort, Update        | The total count of individuals regardless of wellness status.                                                                                                                                                                                                    |
| wkcc\_\_Location\_\_c                      | reference | Create, Filter, Group, Nillable, Sort, Update            | The related Location.                                                                                                                                                                                                                                            |
| wkcc\_\_NeedsReaggregation\_\_c            | boolean   | Create, Defaulted on create, Filter, Group, Sort, Update | Indicates to a batch process that wellness status data (specifically, employee counts with each status) must be reaggregated (`true`). This field is reset to `false` after the batch process reaggregates the data.                                             |
| wkcc\_\_WellnessPercent\_\_c               | percent   | Filter, Nillable, Sort                                   | The calculated percent of the location’s employees that are in the wellness status.                                                                                                                                                                              |
| wkcc\_\_WellnessStatusIndividualCount\_\_c | double    | Create, Defaulted on create, Filter, Sort, Update        | The count of individuals having the wellness status.                                                                                                                                                                                                             |
| wkcc\_\_WellnessStatus\_\_c                | string    | Create, Filter, Group, Sort, Update                      | The wellness status for the individual.                                                                                                                                                                                                                          |

## wkcc\_\_WellnessPercent\_\_c Example

```nolang
IF(
  wkcc__LocationIndividualCount__c = 0,
  0,
  wkcc__WellnessStatusIndividualCount__c / wkcc__LocationIndividualCount__c
)

```
