Hi,
I’ve created some API Calls which can get my User ID and Calendar ID. I then want to download the upcoming bookings and add them to my room bookings in Liberty.
Here’s the call I’ve used in postman:
https://graph.microsoft.com/v1.0/users/{{UserId}}/calendars/{{CalendarId}}/calendarView?startDateTime={{StartDateTime}}&endDateTime={{EndDateTime}}&$count=true&$select=id,subject,start,end,organizer,bodyPreview&$skip=0
My response looks like;
{
“@odata.context”: “https://graph.microsoft.com/v1.0/$metadata#users(‘’)/calendars(‘%3D’)/events(id,subject,start,end,organizer,bodyPreview)”,
“@odata.count”: 10,
“value”: [
{
“@odata.etag”: “”,
“id”: “TS Book a room > Booking - eventId”,
“subject”: “TS Book a room > Booking - Meeting subject”,
“bodyPreview”: “TS Book a room > Booking - Meeting description”,
“start”: {
“dateTime”: “TS Book a room > Booking - Start”,
“timeZone”: “UTC”
},
“end”: {
“dateTime”: “TS Book a room > Booking - End”,
“timeZone”: “UTC”
},
“organizer”: {
“emailAddress”: {
“name”: “TS Book a room > Booking - Meeting organiser”,
“address”: “TS Book a room > Booking - Email address”
}
}
}
]
}
This then fails when creating these new bookings with the error:
Failed (200) - Unable to save a record. Booking diary is not available
I have tried making the diary have smaller time slots in case the time was out of sync with the slots
What else needs doing to insert these bookings?
Thanks
Robin