Soft conflicts for specific users, hard conflicts for others
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 hides slots with hard conflicts, but still shows slots with soft conflicts. This set up can be used to show less options to customers than to employees 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