Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Using the Time Slot Picker in a Screen Flow

You can use the Time Slot Picker as part of your Screen flows in Salesforce. This component is labeled: Single dimension time slot picker. This component expects a number of variables to be passed into the Time Slot Picker screen component. The following variables have to be providedThere are two time slot picker components available in flows. This article describes their use cases and configuration options.

Single dimension time slot picker

The single dimension time slot picker allows the user to select a time slot when at least one dimension record (out of multiple) is available.

A sample flow using this component could look like this, with the result shown in the video on the right:

Image Added

TSP flow.mov

Configuration Options

The single dimension time slot picker has the following configuration options for admins:

...

Field

Input/ouput

Description

List of Dimension Ids (Required)

Input

A list of dimension-ids need to be provided. This can, for example, be a list of all the resources you want to allow the Time Slot Picker to search through.

Reservation Type (Required)

Input

The Name of the Reservation Type. You can set the duration of a Timeslot on this reservation type. The fallback is set to 60 minutes.

Should the Timeslot Picker be required? (Required)

Input

Expects {!GlobalConstant.True} or {!GlobalConstant.False}. Determines if the value needs to be filled before navigating to the next step.

Date (Optional)

Input

A date needs to be parsed to allow the Time Slot Picker to fetch the available time slots for that day.

Reservation (Optional)

Input

You can optionally set a sample reservation if there are any other dependencies that should be taken into account when creating the timeslot

Show Date Input field (Optional)

Input

Expects {!GlobalConstant.True} or {!GlobalConstant.False}. If true, their is a date picker is shown at the top of the Timeslot Picker which can be used to navigate between days.

Reservation

Output

Make sure to Manually manually assign the output Reservation (under advanced) to a “Record (single) Variable” of the type B25__Reservation__c. You can use this reservation to either extend in your flow or save it directly after using this component.

Image Removed

...

.

...

Image Removed

TSP flow.mov