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.
| Field | Type | Properties | Description |
|---|---|---|---|
| LocationType | Users see this value in Workplace Command Center. For Work.com, the set of valid values is:
The default value is | ||
| VisitorAddressId | Users see this value in Workplace Command Center. |
| 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:
|
See Also