question

MaraDelCarmenParraOrtega-1035 avatar image
2 Votes"
MaraDelCarmenParraOrtega-1035 asked 35247258 edited

Bookings API customers information

We use the Bookings app to reserve workplaces

we create an appointment by the reservation form and we make a request off the appointments by the REST API

--> GET https://graph.microsoft.com/beta/bookingBusinesses/{<!-- -->{id}}/appointments
(https://docs.microsoft.com/en-us/graph/api/bookingbusiness-list-appointments?view=graph-rest-beta&tabs=http)

If it's a service with one person, we will see the a customer id and email ok.

33860-image.png

34033-image.png


But, if it's a service with many people, we will see the information about customers equal to null

33996-image.png

34081-image.png


Hoy can we obtain the information in this case?

microsoft-graph-calendarmicrosoft-graph-customer-booking
image.png (58.5 KiB)
image.png (36.7 KiB)
image.png (55.6 KiB)
image.png (56.2 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I have created 2 appointments using Graph API POST /appointments endpoint on a service by giving the payload with all the details. Now I used GET /appointments endpoint and I have got 2 records of Appointments with customer name, phone and id. Could you please check if you have created 5 appointments separately and call GET /appointments endpoint and see if you can get 5 records of data and then check into that data.

0 Votes 0 ·

I am experiencing the same issue - were you able to find the answer/workaround?

0 Votes 0 ·
DanialSaleem-6778 avatar image DanialSaleem-6778 MaraDelCarmenParraOrtega-1035 ·

I found the workaround in case you are still interested. I am using flow and instead of using /bookingBusiness graph API, I am using a trigger "when event is added or updated" -> then convert the body of event from HTML to Text -> then filter the information which I need using custom expression. This video will give you some idea.

NB: For this to work accurately, you will need to create a service with only 1 attendee, add dummy staff members (as a guest) and assign to the same service for multiple bookings. In my case I created the guest staff with our domain and then added that guest address as an alias under booking mailbox. This is to make sure I receive all event in the mailbox I am monitoring via flow. It worked like a charm for me. I am also able to get all custom fields information.

Hope this helps.


0 Votes 0 ·

1 Answer

MaraDelCarmenParraOrtega-1035 avatar image
0 Votes"
MaraDelCarmenParraOrtega-1035 answered

@ShivaKeshavVarma-2446 for our case, we create the appointments from the bookings form. And the details are in Bookings:


In the calendar:
34160-microsoftteams-image-9.png

In the export option:
34166-microsoftteams-image-10.png


34241-microsoftteams-image-11.png


[1]: /answers/storage/attachments/34160-microsoftteams-image-9.png



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.