If you want to use virtual territories or set a default service territory, modify the flow to set a default service territory and skip the Select Service Territory screen. You can skip the service territory selection screen for the Outbound New Appointment, Inbound New Appointment, and Inbound New Guest Appointment flows and their instances. You can also show the service territory address on the review screen if necessary.
Required Editions
| Available in: Lightning Experience. |
| Available in: Enterprise and Unlimited Editions |
| User Permissions Needed | |
|---|---|
| To open, edit, or create a flow in Flow Builder: | Manage Flow |
| To run a flow: | Run Flows |
| To modify page layouts for Service Appointment: |
|
- Click the Service Territories tab.
- Click the service territory record that you want to set as default.
- Copy the Salesforce ID of the service territory.
- From Setup, in the Quick Find box, enter Flows, and then select Flows.
- Click the flow for which you want to skip the service territory selection screen.
-
Perform a step:
- If you’re modifying the Outbound New Appointment flow, double-click Set Initial Values.
- If you’re modifying the Inbound New Appointment or the Inbound New Guest Appointment flow, double-click Initial Assignment.
-
In the value column of the Service Territory > Territory ID variable, paste the copied
Salesforce ID of the service territory.
- If you want the review appointment screen to show address details, enter values for the address-related fields: Street, City, State/Province, Zip/Postal Code, and Country.
- Click Done.
-
Delete these flow connectors:
- The connector from the Appointment Type Screen component to the Set Location Stage component.
- The connector from the Location Screen component to the Resource Decision component.
-
Add a connector from the Appointment Type Screen component to the Resource Decision
component.
- Delete the Set Location Stage and Location Screen components and the connector between them.
- Click Save As.
-
Enter values for Flow Label and Flow API Name, and then save your changes.
An instance of the flow is created.
- Activate the flow.
-
Add the flow instance to the page layout from which the flow is to be used.
For more information, see Set Up a Custom Outbound Flow (Optional).
As Salesforce Scheduler checks internal and external calendars in real time to determine time slots, test your setup's performance after you make these changes.