How to get a list of bookingAppointment objects for the specified bookingBusiness.

Pablo Veliz 0 Reputation points
2023-05-03T21:12:53.2833333+00:00

Hi, I'm following the instructions on this page https://learn.microsoft.com/en-us/graph/api/bookingbusiness-list-appointments?view=graph-rest-1.0 and I'm not getting data on the response despite of I have many appointments created.

I'm able to retrieve Booking Business, Customers, Services, Staff Members except for Appointments and Calendar View.

Do you have any idea what I could be doing wrong here?

Thanks!

User's image

https://graph.microsoft.com/v1.0/solutions/bookingBusinesses/XXXXXXX@v5dw5.onmicrosoft.com/appointments

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#solutions/bookingBusinesses('XXXXXXXX%40v5dw5.onmicrosoft.com')/calendarView",
    "value": []
}


{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#solutions/bookingBusinesses('XXXXXXXX%40v5dw5.onmicrosoft.com')/appointments",
    "value": []
}

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,299 questions
Microsoft Graph Customer Booking API
Microsoft Graph Customer Booking API
A Microsoft API that lets enterprise organization and small business owners manage customer bookings and information with minimal setup.
198 questions
{count} votes

1 answer

Sort by: Most helpful
  1. TH-4749 705 Reputation points
    2023-05-04T15:11:37.17+00:00

    Hello Pablo Veliz.

    Thanks for reaching out. The GET https://graph.microsoft.com/v1.0/solutions/bookingBusinesses/{Id}/appointments API call will only work for scheduling mailboxes.

    To find a list of addresses for the booking calendar use the following API call https://graph.microsoft.com/v1.0/solutions/bookingBusinesses/.

    Please refer to the below articles for more information on Microsoft Bookings:

    Microsoft Bookings Behind the scenes

    Using scripts for Microsoft Bookings calendar and mailbox

    Thanks.