# Location

Location is used by Work.com to represent a physical location, with a visitor address, with extra custom fields added by Work.com. If location search filtering for all levels is enabled in the org, a location can also be an abstraction.

For Work.com, a Location record can have child Location records, which are called sublocations. Use sublocations to create hierarchies that go all the way to an employee work area, for example Building>Floor>Space.

Locations have local level information that is set automatically. A top-level, root location is level 1. A child of level 1 is level 2, and so on. By default, a level 1 location must have a visitor address. However, if a Salesforce admin has enabled location search filtering for all levels of the location hierarchy, level 1 locations don't have to have a visitor address. They can be abstractions, like sales regions or city neighborhoods. For details, see Salesforce Help.

A location hierarchy, which includes a level 1 location and all its sublocations, can be 13 levels deep and include up to 10,000 locations.

Location names have a 40-character limit and names must be unique.

Work.com adds the following field customizations on Location.

## Changes to Existing Fields

<sfdocstbl><table><col /><col /><col /><col /><thead><tr><th>Field</th><th>Type</th><th>Properties</th><th>Description</th></tr></thead><tbody><tr><td>LocationType</td><td> </td><td> </td><td><p>Users see this value in Workplace Command Center.</p><p>For Work.com, the set of valid values is:</p><ul><li><p><code>Building</code></p></li><li><p><code>Campus</code></p></li><li><p><code>Floor</code></p></li><li><p><code>Plant</code></p></li><li><p><code>Site</code></p></li><li><p><code>Space</code></p></li><li><p><code>Store</code></p></li><li><p><code>Warehouse</code></p></li></ul><p>The default value is <code>Building</code>.</p></td></tr><tr><td>VisitorAddressId</td><td> </td><td> </td><td>Users see this value in Workplace Command Center.</td></tr></tbody></table></sfdocstbl>

## Custom Fields

| Field                      | Type     | Properties                                                         | Description                                                                                                                                                                                                                         |
| -------------------------- | -------- | ------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| wkcc__Level2LocationId__c  | string   | Create, Filter, Group, idLookup, Nillable, Sort, Update            | For child locations, this value is the level 2 location in its location hierarchy. For level 1 locations, this value is empty. This value is used to aggregate wellness statuses.                                                   |
| wkcc__LocationPath__c      | string   | Create, Filter, Group, idLookup, Nillable, Sort, Update            | Updates to this field should be made only by Salesforce. The location hierarchy from the root location to this location. Format is similar to `<level1 ID>,<level2 ID>,<level3 ID>`. This field is unique within your organization. |
| wkcc__StatusLastUpdated__c | date     | Create, Filter, Group, Nillable, Sort, Update                      | The date when Status__c was last changed.                                                                                                                                                                                           |
| wkcc__Status__c            | picklist | Create, Filter, Group, Nillable, Restricted picklist, Sort, Update | The status of the location.Possible values are:<ul><li>`Hard Close`</li><li>`Open`</li><li>`Reduced Density`</li><li>`Soft Close`</li></ul>                                                                                         |

**See Also**

- [Understand Location Data](/docs/service/workdotcom-dev/guide/wdc-cc-understand-location.html)

- [*Object Reference for Salesforce*: Location](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_location.htm)
