Versions Compared

Key

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

...

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

...

Configuration time zone

...

Connection with 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

    Image Added

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

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

    Image Added

Configuration for Terminals

...

Using Microsoft Graph (technical side)

...

Open Microsoft Graph Explorer

...

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

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

    Image Removed

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

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

  2. 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

      Code Block
      {
                  "@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 click on Run Query

Information

At the end of this configuration, maybe will receive a message like that:

...

Using Microsoft Graph (technical side)

  1. To select all services, you can use the query below and run it.

    Code Block
    https://graph.microsoft.com/beta/bookingBusinesses/PNRCivilAviationExamBooking@034gc.onmicrosoft.com/services

    Image Added

  2. To create a new service, you can take information from an existing one.

    1. You need to remove id and add @odata.type and change others fields as you want.
      Reference: https://docs.microsoft.com/en-us/graph/api/bookingbusiness-post-services?view=graph-rest-beta&tabs=http

      Code Block
      {
                  "@odata.type":"#microsoft.graph.bookingService",
                  "displayName": "AIRAF - INSTRUCTOR RATING CLASS 4 AEROPLANE",
                  "defaultDuration": "PT3H30M",
                  "defaultPrice": 35,
                  "defaultPriceType": "fixedPrice",
                  "description": "Exam duration - 3 hoursRequirements:Government issued ID (i. e. passport, Aviation Document Booklet, drivers license)Category 1 MedicalFlight Training Unit Letter of recommendation if applicable or proof of 15 hours instructor flight training and all",
                  "isHiddenFromCustomers": false,
                  "notes": "",
                  "additionalInformation": "",
                  "preBuffer": "PT0S",
                  "postBuffer": "PT0S",
                  "staffMemberIds": [],
                  "isLocationOnline": false,
                  "schedulingPolicy": null,
                  "defaultLocation": {
                      "displayName": "344 Edmonton St",
                      "locationEmailAddress": null,
                      "locationUri": "",
                      "locationType": null,
                      "uniqueId": null,
                      "uniqueIdType": null,
                      "address": {
                          "type": "home",
                          "postOfficeBox": "",
                          "street": "344 Edmonton St",
                          "city": "Winnipeg",
                          "state": "Manitoba",
                          "countryOrRegion": "Canada",
                          "postalCode": "R3C 0P6"
                      },
                      "coordinates": {
                          "altitude": null,
                          "latitude": null,
                          "longitude": null,
                          "accuracy": null,
                          "altitudeAccuracy": null
                      }
                  },
                  "defaultReminders": []
      }

    2. Change the action to POST and click on Run Query

      Image Added

    3. Result

      Image Added

Power BI

The custom fields can’t be added by Microsoft Graph

...