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?

                    • Related Articles

                    • Restrict double booking of rooms and provide feedback using custom module

                      Usecase: This article outlines the steps for implementing a room booking feature using a custom module, Which blocks the dates if a room is already booked. The objective is to prevent double booking of rooms and provide feedback when attempting to ...
                    • Notification script using Custom function in custom trigger

                      This is applicable from 10600 builds. From 10600 , Business rules dont have Email notification feature. The same use case be achieved through Custom triggers feature as mentioned below. Script to enable notification of request creation using custom ...
                    • Risk Matrix for Change using Custom Module

                      Overview: A risk matrix helps in identifying risks based on how likely they are to happen and how serious their impact could be. This makes it easier to decide which risks need urgent attention and which ones can be watched over time. It helps manage ...
                    • Change Risk Assessment Questionnaire using Custom module - Implementation steps

                      We’re excited to share a step-by-step guide( Attached) on implementing a Change Risk Assessment Questionnaire in ServiceDesk Plus using the Custom Module feature. This solution leverages Custom Modules, Change Additional Fields, and Field & Form ...
                    • Risk matrix for Change using Custom module

                      UseCase: Risk need to be calculated through Risk matrix (similar to Priority matrix in the request module) Steps to configure: Configure custom module as in the attached screenshot. 1. Navigate to Admin --> Developer space --> Custom module --> ...