Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

High

...

-Level Use Case

This example provides a starting point for integrating GoMeddo's "room booking" capabilities into your website using the Javascript SDK.

...

The dashboard of the application lists various available rooms which can be filtered based on room type, price, and group size. Once a user selects a room from available rooms, they can click on the room and view information on that room and select 'Book Now' on the UI. Users will then be prompted to input their contact information and make their reservation for the selected room.

GoMeddo setup

...

The various rooms are a resource of type room in GoMeddo with descriptions, pricing images, etc, attached to them.

...

The rooms are located in a student housing (Amsterdam Metropolitan University) which is also a resource in GoMeddo.

...

Amsterdam is the city where the rooms are located.

...

Visitors of the room become contacts in Salesforce using reservation contacts.

...

The booking becomes a reservation in GoMeddo of type student housing.

...

The location where the room is available is a resource in GoMeddo with a specific resource type

  • City: Amsterdam is categorized as a city.

  • Student Housing: Amsterdam Metropolitan University is categorized as a student housing.

  • Room: Specific rooms are identified within Amsterdam Metropolitan University such as (e.g., Single Room, Double Room), each with a type of room.

...

Custom Fields Creation: To use and display information from other objects, we must introduce custom fields within the Salesforce reservation object, such as Housing_Location__c, Housing_Features__c, etc. These fields are essential for getting detailed information about each room.

...

Step-by-Step Guide to Setting Up The Example

  1. Set Up Resources and Resource Types:

    • Define the hierarchical structure for your resources:

      • Organization > Country > City > Student Housing > Rooms.

    • Example:

      • Organization: Your Organization

      • Country: Netherlands

      • City: Amsterdam

      • Student Housing: Amsterdam Metropolitan University

      • Rooms: Executive Suite

    • Note: There can be multiple resources of the type "Rooms", "City" and, "Student Housing".

  2. Create Reservation Types:

    • Define a reservation type (e.g., Student Housing).

  3. Create Custom Fields Under the Resource Object:

    • Add the following custom fields to provide detailed information about each activity:

      • Housing_Location__c (Formula Text Field)

      • Housing_Features__c (Text Field)

      • Housing_Rating__c (Number Field)

      • Housing_Type__c (Formula Text Field)

      • Image_Url_2__c (Custom Image Field)

      • Image_Url_3__c (Custom Image Field)

      • Image_Url_4__c (Custom Image Field)

  4. Create Resources:

    • Create resources for the rooms you want to display on the frontend.

    • Ensure each resource is linked to the appropriate resource type, description, and other custom fields.

Note:

  • Ensure that each resource in GoMeddo is marked as 'isActive' and 'Api Visible' to be displayed and available through the API.

  • Ensure that resources

...

  • resources types

...

  • custom fields and reservation types are set up

...

  • in GoMeddo

...

  • . For the

...

  • student housing system to accurately display available rooms, each room must be created as a resource within GoMeddo. This step is vital as the SDK relies on

...

  • these resources to present customers with real-time availability and booking options

...

  • .

API Key Requirement

To access to the SDK’s functionalities, an API key from GoMeddo is required. For instructions on obtaining this key , refer to First time Set-up. Remember to whitelist your domain as a part of the setup process and grant privileged access to the API key.

...

For further information on utilizing the GoMeddo Javascript SDK, visit [visit GoMeddo JS SDK wiki] and to test the frontend example explore the GitHub repository [].

Visual Overview

Image AddedImage AddedImage AddedImage Added

Similar use cases

  • Book meeting rooms for corporate events

  • Reserve study rooms in libraries

  • Schedule conference rooms for business meetings

  • Reserve practice rooms for music students

  • Book private rooms for therapy sessions