- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2024 09:17 AM
Is there a way to restrict reservation times to an organisation's/building's operational hours? e.g. if a building is open from 9am-5pm, can users be prevented from making a reservation that starts at 7am?
We are currently using a flow to automatically cancel reservations made outside of opening times, but is there a simpler way to achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2024 02:37 AM
Hello,
The flow is triggered when a workplace reservation is created/updated and the steps are as follows:
- Look up record (schedule which defines your operational hours)
- Verify inside schedule (rsv start date/time)
- Verify inside schedule (rsv end date/time)
- If either step 2 or 3 returns false,
Update reservation state to cancelled
Note, the action in steps 2 and 3 is a custom action we have created - its inputs are a date/time and a schedule:
So in this case, it's checking that the start/end time of the reservation is inside the schedule defined in step 1.
Hope this helps!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 01:30 PM
Hello,
Can you please share detailed steps of flow to implement same.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2024 02:37 AM
Hello,
The flow is triggered when a workplace reservation is created/updated and the steps are as follows:
- Look up record (schedule which defines your operational hours)
- Verify inside schedule (rsv start date/time)
- Verify inside schedule (rsv end date/time)
- If either step 2 or 3 returns false,
Update reservation state to cancelled
Note, the action in steps 2 and 3 is a custom action we have created - its inputs are a date/time and a schedule:
So in this case, it's checking that the start/end time of the reservation is inside the schedule defined in step 1.
Hope this helps!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2024 03:10 PM
Hello Phoebe,
Thanks for solution, am trying to implement same but have one query-how to define/set value for schedule_sid ? Can you please suggest.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 07:50 AM
Hi,
The schedule_sid is one of the inputs of the 'Verify inside schedule' action. The input in this case is the sys_id of the schedule from step 1. You can use the data pills in Flow Designer to find the correct input.