Mar 20, 2020 02:04 PM
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:
Mar 20, 2020 02:24 PM
Really nice, @Kamille_Parks!
You utilized those UI elements extremely well, and made your script look and feel approachable and polished!
Mar 20, 2020 03:12 PM
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:
Mar 20, 2020 04:03 PM
Great script @Kamille_Parks
I really like your walkthrough video.
I agree on wanting a date picker input type.
Apr 11, 2020 04:30 PM
I came up with a solution to handle times:
Jun 05, 2020 09:49 PM
Surprise! If you thought I was done with this script, so did I. Until I was asked “How would someone reserve more than one asset at a time?”
Aug 18, 2022 10:37 AM
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.
Aug 18, 2022 10:55 AM
I’m not editing these scripts again. Just use the extension.
Aug 18, 2022 11:09 AM
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.
Sep 07, 2022 04:50 AM
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.