Flow Screen Component: Select Service Territory

Enables users to select a service territory (branch or office location).

Required Editions

Available in: Lightning Experience.
Available in: Enterprise and Unlimited Editions

Image of the screen that enables users to select a service territory.

Attribute Description Additional Information
API Name Use underscores and alphanumeric characters without spaces. Begin the name with a letter, don’t end the name with an underscore, and don’t use two consecutive underscores.
  • Type: Input
  • Data type: String
  • Used in: All outbound and inbound flows
City

The city of the service territory.

Example: San Francisco

  • Type: Output
  • Data type: String
  • Used in: All outbound, inbound, and guest flows
Country

The country of the service territory.

Example: United States

  • Type: Output
  • Data type: String
  • Used in: All outbound, inbound, and guest flows
Distance

The search radius from the specified location. All the service territories in this search radius appear.

Values can be specified in miles (mi) or kilometers (km). Supported values are:

  • Miles: 5, 10, 25, 50, and 100
  • Kilometers: 10, 20, 50, 100, and 200
  • Type: Input and Output
  • Data type: Integer
  • Used in: All outbound, inbound, and guest flows
Distance Unit The unit of the Distance attribute. Valid values are km and mi.
  • Type: Input
  • Data type: String
  • Used in: All outbound, inbound, and guest flows
Filter by Service Territory IDs

A comma-separated list of service territory IDs that are used to filter service territories.

If a value is set, the component shows only the associated service resources.

Example: 0Hhxx0000004DUuCAM, 0Hhxx0000004DEhCAM

  • Type: Input
  • Data type: String
  • Used in: All outbound, inbound, and guest flows
Filter by Resource IDs

A comma-separated list of resource IDs that are used to filter service territories.

If a value is set, the component shows only supported service territories for these service resources.

Example: 0Hnxx0000004DdpCAE, 0Hnxx0000004DscCAE

  • Type: Input
  • Data type: String
  • Used in: All outbound, inbound, and guest flows
Hide Operating Hours Indicates whether the operating hours of the service territories are hidden. If this value is set to true, the operating hours of the service territory don’t appear.
  • Type: Input
  • Data type: String
  • Used in: All outbound, inbound, and guest flows
Latitude

The latitude of the location entered by users. Latitude is auto-populated when a user selects a value suggested by Google search.

Example: 37.7898

  • Type: Input and Output
  • Data type: String
  • Used in: All outbound, inbound, and guest flows
Location

The keywords entered to search for a service territory.

Example: Salesforce Tower, San Francisco, CA, USA

  • Type: Input and Output
  • Data type: String
  • Used in: All outbound, inbound, and guest flows
Longitude

The longitude of the location entered by users. Longitude is auto-populated when a user selects a value suggested by Google search.

Example: –122.39695

  • Type: Input and Output
  • Data type: String
  • Used in: All outbound, inbound, and guest flows
Postal Code

The postal code of the service territory.

Example: 94105

  • Type: Output
  • Data type: String
  • Used in: All outbound, inbound, and guest flows
Service Resource

The ID of the service resource whose territories are shown.

Example: 0Hnxx0000004DdpCAE

  • Type: Input
  • Data type: String
  • Used in: All outbound, inbound, and guest flows
Service Territory

The ID of the service territory.

Example: 0Hhxx0000004DUuCAM

  • Type: Input and Output
  • Data type: String
  • Used in: All outbound, inbound, and guest flows
State

The state of the service territory.

Example: CA

  • Type: Output
  • Data type: String
  • Used in: All outbound, inbound, and guest flows
Street The street of the service territory.
  • Type: Output
  • Data type: String
  • Used in: All outbound, inbound, and guest flows
Validations

The error messages in the Select Service Territory component.

This value is auto-populated. For example, the attribute stores the error message that’s generated when a user tries to navigate to the next screen without selecting a location.

  • Type: Input and Output
  • Data type: String
  • Used in: All outbound, inbound, and guest flows
Work Type Group

The ID of the work type group that's used to filter service territories.

Note
Note Always set a value for this attribute.

Example: 0VSxx0000004D0GGAU

  • Type: Input
  • Data type: String
  • Used in: All outbound, inbound, and guest flows