Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Business Process

Bookings visualization

If you don’t see any appointments or some appointments are not showing in the calendar, verify your filter option.

Configuration time zone

Configuration Terminals

Using Booking Tools (user-friendly)

For a terminal, we need to create a staff like Guest with an e-mail (this e-mail doesn’t need to be functional). The role Guest can be assigned to bookings, but they can’t open the booking mailbox (source: https://docs.microsoft.com/en-us/microsoft-365/bookings/add-staff?view=o365-worldwide).

The e-mail default will be: terminal + number + region + @tc.gc.ca

like: terminal1pnr@tc.gc.ca, terminal2pnr@tc.gc.ca

  1. Go to Staff > Add new staff

  2. Add a name > Select the option Use this name

  3. Add the e-mail and save changes.

Using Microsoft Graph (technical side)

  1. Open Microsoft Graph Explorer

  2. Connect with your TC Account and select the “beta” option
    For the Booking Tools API, here is the reference https://docs.microsoft.com/en-us/graph/api/resources/booking-api-overview?view=graph-rest-beta

  3. Find your business id. Run the query below and in Microsoft graph response find your booking name

    https://graph.microsoft.com/beta/bookingBusinesses

  4. To select all members, you can use the query below and run it

    https://graph.microsoft.com/beta/bookingBusinesses/PNRCivilAviationExamBooking@034gc.onmicrosoft.com/staffMembers

  5. To create a new staff, you can take information from an existing one.

    1. You need to remove id and add @odata.type, change the field “displayName” and “emailAddress”
      Reference: https://docs.microsoft.com/en-us/graph/api/bookingbusiness-post-staffmembers?view=graph-rest-beta&tabs=http

      {
                  "@odata.type":"#microsoft.graph.bookingStaffMember",
                  "displayName": "Terminal 2",
                  "emailAddress": "terminal2pnr@tc.gc.ca",
                  "availabilityIsAffectedByPersonalCalendar": false,
                  "colorIndex": 8,
                  "role": "externalGuest",
                  "useBusinessHours": false,
                  "workingHours": [
                      {
                          "day": "monday",
                          "timeSlots": []
                      },
                      {
                          "day": "tuesday",
                          "timeSlots": [
                              {
                                  "start": "08:15:00.0000000",
                                  "end": "12:30:00.0000000"
                              }
                          ]
                      },
                      {
                          "day": "wednesday",
                          "timeSlots": [
                              {
                                  "start": "08:15:00.0000000",
                                  "end": "12:30:00.0000000"
                              }
                          ]
                      },
                      {
                          "day": "thursday",
                          "timeSlots": [
                              {
                                  "start": "08:15:00.0000000",
                                  "end": "12:30:00.0000000"
                              }
                          ]
                      },
                      {
                          "day": "friday",
                          "timeSlots": []
                      },
                      {
                          "day": "saturday",
                          "timeSlots": []
                      },
                      {
                          "day": "sunday",
                          "timeSlots": []
                      }
                  ]
              }

    2. Change the action to POST and Run Query

  6. dasds

The custom fields can’t be added by Microsoft Graph

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.