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.
12,272 questions
{count} votes

2 answers

Sort by: Most helpful
  1. TH-4749-MSFT 3,305 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.


  2. TH-4749-MSFT 3,305 Reputation points
    2023-06-01T15:45:52.03+00:00

    Hello Pablo Veliz,

    Hope all is well. If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.