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.

FieldTypePropertiesDescription
LocationType  

Users see this value in Workplace Command Center.

For Work.com, the set of valid values is:

  • Building

  • Campus

  • Floor

  • Plant

  • Site

  • Space

  • Store

  • Warehouse

The default value is Building.

VisitorAddressId  Users see this value in Workplace Command Center.

FieldTypePropertiesDescription
wkcc__Level2LocationId__cstringCreate, Filter, Group, idLookup, Nillable, Sort, UpdateFor 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__cstringCreate, Filter, Group, idLookup, Nillable, Sort, UpdateUpdates 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__cdateCreate, Filter, Group, Nillable, Sort, UpdateThe date when Status__c was last changed.
wkcc__Status__cpicklistCreate, Filter, Group, Nillable, Restricted picklist, Sort, UpdateThe status of the location.Possible values are:
  • Hard Close
  • Open
  • Reduced Density
  • Soft Close

See Also