Implementing Room Booking feature using custom module

Implementing Room Booking feature using custom module

Usecase:
This article outlines the steps for implementing a room booking feature using a custom module,  and requires a feature that blocks the dates if a room is already booked.  The objective is to prevent double booking of rooms and provide feedback when attempting to book an already reserved room within the selected time range.

Requirement:
The application should display a message when attempting to book a room that is already reserved during the chosen time frame.

Steps to follow:
We can create a custom module for room booking with 4 custom fields, namely:
  1. Date Fields: From Date, To Date
  2. Picklist Field: Room Name
  3. Single Line Field: Booked By
Create a custom module as below:



Add the 4 custom fields to the layout:


Permissions can be modified as per requirement, sample attached below:


Create a custom function: Goto Admin > Developer Space > Custom Module > Copy & Paste the content of attached roomBooking_CM.txt and save it with a name.
  1. Update the URL and technician key as per your instance.
  2. For the Integration key/Technician key refer to this KB link: https://pitstop.manageengine.com/portal/en/kb/articles/creating-integration-key


Configure the created custom function in a business rule to get executed for every new record being created for the custom module.


Conclusion:
If you encounter challenges during implementation or require further assistance, please contact our technical support team for guidance and support.

                    New to ADSelfService Plus?