Use Case: You have a table of assets (library books, conference rooms, etc.) that you want people to reserve, but don’t want people to be able to reserve an individual asset at the same time it has already been reserved.
No-Conflict Asset Reservations script by Kamille. This script allows you to schedule a new asset reservation in a form-like interface by setting a date range, then selecting from a list of assets which are un-reserved for that time period.
Potential Users: Event Planners, Inventory Managers, Librarians, etc.
Special shoutout to @Jeremy_Oglesby for his wonderful Detect Scheduling Conflicts script, which inspired me to make my own script. Using both scripts together, I think Airtable users will never have to worry about double-booking an asset again!
Instructions: This script includes a “variables” section to be as plug-and-play as possible. To customize the script to fit your needs, edit the
BaseSpecificNames values to match your base’s table and field names. If you’re combining this script with the
Detect Scheduling Conflicts script, only
BaseSpecificNames section is necessary, but make sure to include all variables.
You can copy the sample base from the Universe here:
or you can copy the script by itself from the link below:
Thanks! This was my first script and a real kick in the butt to make my bases/code more adaptable for others.
I may do a Version 2 of this script to handle date/time.
My little wishlist of features to help me improve this script for Version 3:
Hi @Kamille_Parks, thank you so much for sharing, this is priceless!
Question : instead of booking an asset for a date range, can this be used to book specific time range on a selected day?
Something like : start date/ time - end date/ time?
Trying to solve for the rooms no conflict booking for the meetings that are only a few hours, but not set hours if that makes sense.
Thank you @Kamille_Parks, would love to add the extension, and, unfortunately, the enterprise account settings do not allow to add third-party extensions. Any tips on how to make it work are greatly appreciated. Thank you.
This is the default setting of an enterprise account. I recommend having a discussion with the enterprise admin to see if restricting third party extensions is by design or simply by default. If it is by default, it is a quick change in the admin panel to allow third party extensions. If it is by design, you can ask for their reasoning and work with them to better understand their concerns.