question

DanialSaleem-6778 avatar image
0 Votes"
DanialSaleem-6778 asked Sridevi-MSFT commented

List Bookings calendarView returing NULL if max attendees are more than ONE

I am successfully connecting to MS Graph API via delegate access to list all bookings/appointments for specific date range, but encountering an issue:

  • Under service when maximum number of attendees per event is default (1), it returns all required values correctly, e-g;
    "customerId": abcxyztbx,
    "customerName": abc,
    "customerEmailAddress": abc@gmail.com,
    "customerPhone": 123456789,
    "customerNotes": null,

  • Under service when maximum number of attendees per event is more than 1, it returns NULL against all customer values, e-g;
    "customerId": null,
    "customerName": null,
    "customerEmailAddress": null,
    "customerPhone": null,
    "customerNotes": null,

Service details, timezone and range is returned correctly in both scenarios. Anyone encountered this issue or able to find a solution/workaround? I know this API is still in beta but I guess it should be highlighted for MS to fix.

office-teams-app-devmicrosoft-graph-teamworkmicrosoft-graph-calendarmicrosoft-graph-customer-booking
· 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.

What is the exact MS Graph endpoint you are calling?

0 Votes 0 ·

/beta/bookingBusinesses/{id}/appointments

OR

/beta/bookingBusinesses/{id}/calendarView?start=2021-04-15T00:06:59.7406944Z&end=2021-07-15T00:06:59.7406944Z

0 Votes 0 ·

Have you created the appointments through graph or through outlook bookings page? I have seen that after you create the service under services, you then create an appointment for the service, they will show. I can see appointments for services that have max attendee set to 2.

0 Votes 0 ·

Appointments are created by customers via booking webpage. I can see all appointments. The issue occurs when I try to list the appointments via graph API. I can get the list of appointments but customer details are always NULL (when service has more than 1 attendees). Hope this is clear now?

0 Votes 0 ·

1 Answer

Sridevi-MSFT avatar image
0 Votes"
Sridevi-MSFT answered Sridevi-MSFT commented

@DanialSaleem-6778, Booking appointment represents a customer appointment for a bookingService, performed by a set of staff members. So, it is not possible to create appointment for multiple customers at a time. Please check this documentation.


· 5
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.

Thanks for your response Sridevi. I am not creating appointment instead LISTING them. List appointment should return appointments for all customer, right? Strange part is, it does return all appointments correctly only if service is created with max attendees = 1. If max attendees are greater then 1, it returns NULL against customer name, phone, address etc.

0 Votes 0 ·

Hi @DanialSaleem-6778 - I couldn't found max attendees property in booking service.

I have reproduced the scenario by creating booking business and booking service with two staff members. I have created two booking appointments with single booking business id and booking business service. When I list the appointment I got Customer name, Phone, address etc. in response body. Please check the response in below provided images.

94445-ss1.png

94482-ss2.png


0 Votes 0 ·
ss1.png (47.8 KiB)
ss2.png (42.5 KiB)

Thanks again but my issue is when "Maximum Attendees" are set to more than 1 with single staff member. Please see attached image. Could you list the bookings again by doing the following changes to service:

Create new service and set Maximum Attendees to more than 1.
94544-maxattendees.png.
Assign single staff member to above service.
Create multiple bookings.
List bookings via Graph API.

This issue is also reported in another post

I hope this is clear to understand now?


0 Votes 0 ·
maxattendees.png (16.3 KiB)
Show more comments