Versions Compared

Key

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

...

  • overlapping_reservations
    overlapping reservations with the reservation being checked
    COUNT(overlappingReservations) > 0
    This rule would make sure that no overlapping reservation are allowed

  • matchingAvailablilities
    Allowing you to use the availability or unavailability of the related dimension in your formula.
    COUNT(matchingAvailabilities) == 0
    Reservation not allowed when there is no availability or if there are unavailabilities.

Use custom permission in a rule

You can also reference and check the permissions of the running user in your rule.
By adding: $Permission.Custom_Permission_Name
COUNT(overlapping_reservations) > 0 and $Permission.B25__ALLOW_DOUBLE_BOOKING == false

Examples rules:

Note

Important is that when the result is true, the reservation will be blocked. This is why we call the rules “Conflict Rules”.

...