Generate input timeslots
Returns a list of time slots matching the input parameters.
The returned TimeSlots are intended for use in the Time Slot Picker (for flows) in fixed timeslot mode. To create more complex fixed time slot arrangements this method can be called multiple times with different configs and the resulting slots can then be combined into a single list.
Input Variables
Name | Type | Description |
|---|---|---|
Start of range | Date | The start date of the range of time slots. |
End of range | Date | The end date of the range of time slots. |
Slot start time | String | The start time of the slots on each day. Format HH:mm |
Slot end time | String | The end time of the slots on each day. Format HH:mm |
Days | String | The days that the slots should be generated for. Format Monday;Saturday. Defaults to all days. |
Duration | Number | The duration of the time slots being generated in minutes. Default 60 minutes. |
Interval | Number | The gaps between the start of each time slot so if it is equal to duration the time slots will follow each-other. Default 60. |
Time zone | String | Time zone that the slots should be generated in. This modifies the slot start and end times. Most of the time you would want this to be the time zone of the reservation you are creating. |
Output Variables
Name | Type | |
|---|---|---|
Time Slots | List<TimeSlot> | The generated list of time slots. |