Forum Discussion

BentoBoxBandit's avatar
BentoBoxBandit
Copper Contributor
Jul 18, 2023

ICS file generated by MS Booking via MS Graph API Create Appointment contains unexpected contents

We have been using MS Bookings and MS Graph API (v1.0) for a while now via SDK (v4.52.0) - recently (as of a couple of weeks ago) one of our customers has raised that the ICS file generated when an appointment is created has started to contain more information than expected.

Before this was reported by the customer, the ICS file would contain the "sevice notes" only, however now it is containing the following information, which is confusing end users:

 

Customer Info

--------------------

Name: John Doe

Email: email address removed for privacy reasons

Phone Number: 000000000

 

Booking Info

--------------------

Service name: IT Support

Location: { }

Price: Free

 

Custom Fields

----------------------

 

Buffer time:

--------------------

Before: 0min(01:30 PM Tue, 18 Jul 2023).

Time with customer: 01:30 PM Tue, 18 Jul 2023–02:00 PM Tue, 18 Jul 2023

After: 0min(02:00 PM Tue, 18 Jul 2023)

Time zone:W. Europe Standard Time

 

Internal Notes

-----------------------

Original service note on create

 

Kindly find below the request body for create appointment:

 

POST https://graph.microsoft.com/v1.0/solutions/bookingBusinesses/{id}/appointments

 

{
"@odata.type": "#microsoft.graph.bookingAppointment",
"customerTimeZone": "Europe/Berlin",
"smsNotificationsEnabled": false,
"priceType": "free",
"startDateTime": {
"@odata.type": "#microsoft.graph.dateTimeTimeZone",
"dateTime": "2023-07-18T13:30:00.0000000+00:00",
"timeZone": "W. Europe Standard Time"
},
"endDateTime": {
"@odata.type": "#microsoft.graph.dateTimeTimeZone",
"dateTime": "2023-07-18T14:00:00.0000000+00:00",
"timeZone": "W. Europe Standard Time"
},
"isLocationOnline": false,
"optOutOfCustomerEmail": true,
"anonymousJoinWebUrl": null,
"serviceId": "redacted",
"staffMemberIds": [
"redacted"
],
"maximumAttendeesCount": 1,
"filledAttendeesCount": 1,
"email address removed for privacy reasons": "#Collection(microsoft.graph.bookingReminder)",
"reminders": [
{
"offset": "P1D",
"recipients": "allAttendees",
"message": "This is a reminder for both customer and attendees"
},
{
"offset": "PT1H",
"recipients": "customer",
"message": "Please be available to enjoy your lunch service."
},
{
"offset": "PT2H",
"recipients": "staff",
"message": "Please check traffic for next cater."
}
],
"email address removed for privacy reasons": "#Collection(microsoft.graph.bookingCustomerInformation)",
"customers": [
{
"@odata.type": "#microsoft.graph.bookingCustomerInformation",
"name": "John Doe",
"emailAddress": "email address removed for privacy reasons",
"phone": "000000000000"
}
],
"serviceName": "IT Support",
"serviceNotes": "Original service note on create"
}



We have attempted to investigate possible settings both from within the SDK and on MS Bookings, but can't spot anything that might be related to this. We have also tested to create bookings via postman directly, and it results in the same behaviour. Only when the appointment is created through the calendar in MS Booking this information is not sent in the ICS.

Is there any configuration setting which we can use to remove this information? When creating the booking manually through MS Bookings, this extra information is not in the ICS file - but only when it is created via the SDK or API only.

Thank you !

  • BentoBoxBandit thank you for reaching out. Can you please confirm if you are referring to the staff invite or the customer invite? The information will be different in each.

    • BentoBoxBandit's avatar
      BentoBoxBandit
      Copper Contributor
      Hello davisjr thank you for reaching out - this is the customer invite which is generated by MS Booking - our end users are finding this rather confusing since it is included as text in the email body.
  • We recently made some changes that should have resolved this issue. Can you please confirm if you continue to see this?
    • BentoBoxBandit's avatar
      BentoBoxBandit
      Copper Contributor

      Hello davisjr thank you for the above message and for informing us about the change - I can confirm that we no longer see the confusing text, we will inform the client. What I would like to point out is that the new text is great, but it is different than what was being set originally, is there a way how we can track these changes that are being done, so that we can be aware of any changes being carried out? It would be really helpful if we could communicate this back to our clients. Thank you !

Resources