Example Conflict Rules
Basic Availability checking
For basic availability checking, you can use the built-in formula IsNotAvailable()
. This will return true
if the reservation is linked to any record (of the rule’s Dimension) that is not available at that time. For example, consider the following rule:
Dimension | Staff |
---|---|
Conflict Type | Hard |
Formula |
|
This rule will result in an error if the reservation is linked to a Staff record which is not available.
Soft/Hard conflicts based on user permissions
This example shows how to grant permissions to certain users, allowing them to make reservations outside of opening times with warnings (soft conflicts) instead of errors (hard conflicts).
If you are using the time slot picker keep in mind that it shows slots with soft conflicts, but not with hard conflicts. You can use these rules to show more options to employees than to customers for example.
For this example, we will use the ‘Allow Double Booking’ custom permission included in GoMeddo, but you can also create your own: https://help.salesforce.com/s/articleView?id=sf.custom_perms_overview.htm&type=5
Create a conflict rule with the Conflict Type set to HARD. Give it the following formula:
IsNotAvailable() AND $Permission.ALLOW_DOUBLE_BOOKING != true
Create a conflict rule with the Conflict Type set to SOFT. Give it the following formula:
IsNotAvailable() AND $Permission.ALLOW_DOUBLE_BOOKING == true
Conflict Rule library
Basic rules
Rule | Description | Condition |
---|---|---|
Invalid Title | Reservation not allowed when title matches "invalid". |
|
Invalid Resource Name | Reservation not allowed when the resource name is "invalid". |
|
Matching Title and Notes | Reservation not allowed when the reservation title matches the reservation notes. |
|
No Overlapping Allowed | Reservation not allowed when overlapping with another reservation. |
|
No Availability | Reservation not allowed if no availability exists. |
or
|
More advanced rules
Rule | Description | Condition |
---|---|---|
No Overlapping Reservations | Reservation not allowed when overlapping with other reservations, excluding reservations with status "Canceled" or "Temporary". |
|
No Double Booking | Reservation not allowed when the resource does not allow double booking and overlaps with another reservation. |
|
Respect Max Capacity | Reservation not allowed when overlapping with more reservations than specified in the "Max Capacity" field on the related resource. |
|
No Availability, Overbooking Disabled | Reservation not allowed if the resource has no availability and the "Overbookable" checkbox is disabled. |
|
Matching Availability Type | Reservation not allowed when there is no availability with an availability type that matches the reservation type. |
|
Exceeding Lowest Availability Capacity | Reservations not allowed when exceeding the lowest availability’s capacity. |
|
Check Room Capacity | Reservations are checked against the room’s capacity, or bypassed if the status allows double booking. |
|
Exceeding Total Availability Capacity | Reservation not allowed when exceeding the sum of all availabilities' capacity. |
|
Capacity and Gender Constraints | Reservations not allowed when no capacity is available, or there is a different gender conflict. |
|
Double Booking Permission | Reservation not allowed to be double-booked if the user does not have permission to "Overrule Double Bookings". |
|
Resource Availability Check (Widget) | Raises a conflict if there is no availability or if there is unavailability. |
|
External Client Quantity Check | Raises a conflict if the |
|