How to Use Recurrence Rules
In this tutorial, you will learn how to:
- Create a service for recurrence rules
- Connect services with resources
- Set capacity rules
- Create schedules using basic and custom RRULE patterns
- Test recurrence rule configurations
It can help you with:
- Automating repeated scheduling
- Managing recurring events efficiently
- Reducing manual booking setup
Creating a service
Before creating the recurrence rules, you will need to create a service:
- Go to your Bookla platform account
- Go to the section "Services"
- Click button "+ New service"
- Write the service name and click button "Next"
- Click the service type. Recurrence rules can be added for these types of services:
- Ticket
- Group
- Click button "Next"
- Write the duration
- Choose the booking policy:
- Instant Booking: The client receives confirmation immediately after booking
- Needs Confirmation: The booking is confirmed only after manual approval
- Needs Prepayment: The booking is confirmed after payment is made
- Click button "Create"
Connecting the service with a resource
- Click button "Link with resource"
- Select the resources
- Click button "Link resources"
How to create a schedule
Basic repeat rules: weekly, daily patterns
- Go to the section "Schedule"
- Click "+ Add Slot"
- Select the duration
- Select the resource
- Select the start date and time
- Click button "Weekly"
- Select every day where it repeats
- Click button "Create"
Custom Schedules: Multiple times a day
- Go to the section "Schedule"
- Click "+ Add Slot"
- Select the duration
- Select the resource
- Select the start date and time
- Click button "Custom [RRULE]"
- To create RRULE, you can use for example rrule.js
- In rrule.js, enter the data:
- Delete the count "30", as the count would mean creating a specific number of events. If you have a specific number, then you can change it.
- wkst: it means the first day of the week
- byweekday: select all the days where your event will be happening
- byhour: all the hours when the event will be happening, you can add multiple hours by separating them with ","
- byminute
- bysecond
- Copy the rule.toString()
- Paste the code under Custom RRULE
- Click button "Create"
Testing the component
- Click button "Preview"
- Select the date and the slots should be created
Conclusion
You have now learned how to create services, configure recurrence rules, and test your schedules in Bookla.