Unknown error (500) when calling bookingBusinesses endpoints

Andrea Alencar Beserra 0 Reputation points
2024-09-23T14:22:17.54+00:00

Good morning,

I have been trying for a few days to use Microsoft Graph services for Bookings:

However, a 500 error is being returned for all these requests.

User's image

The documentation (https://video2.skills-academy.com/en-us/graph/api/bookingbusiness-getstaffavailability?view=graph-rest-1.0&tabs=http) states that I need the Bookings.ReadWrite.All permission for the application permission type – which has already been granted by my organization.

User's image

The request to obtain the token is being made like this, and the token is successfully returned:

User's image

But when I pass this token to the endpoints, the 500 error mentioned earlier occurs.

A very important detail is that the {ID} (the email of the booking page) being passed to the services to retrieve information belongs to a page with "No Self-Service" visibility.

User's image

Am I doing something wrong? Or does the "No Self-Service" visibility really does not return any booking page information through Microsoft Graph services?

Any help would be appreciated.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,944 questions
Microsoft Q&A
Microsoft Q&A
Use this tag to share suggestions, feature requests, and bugs with the Microsoft Q&A team. The Microsoft Q&A team will evaluate your feedback on a regular basis and provide updates along the way.
828 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 41,771 Reputation points
    2024-09-24T10:07:31.0233333+00:00

    Hi @Andrea Alencar Beserra

    I just managed to get it working.

    I found that if I use Bookings.ReadWrite.All application permission it throws a 401 error, but with Bookings.Read.All application permission it works fine, which seems to be a bug. I suggest you open a support ticket to report the issue.

    Before:

    User's image

    User's image

    After:

    User's image

    User's image

    Hope this helps.

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


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.