BookingBusiness Customers GetAsync returns error

Anonymous
2022-11-02T09:22:29.737+00:00

When calling graph api to get customers for a certain calendar, I get a service exception that does not tell me much.

This is from a calendar from which I can get the availability and the staffmembers without any issue, yet the following code returns the error below

256313-image.png

Calendar is the email of the calendar, and getGraphClient looks like this:
256371-image.png

Application has the correct permissions:
256303-image.png

Microsoft.Graph.ServiceException: 'Message: An error has occurred.
Inner error:
AdditionalData:
date: 2022-11-02T09:16:14
request-id: 2d05a5e0-efd1-4694-b221-1648a526ebc3
client-request-id: 2d05a5e0-efd1-4694-b221-1648a526ebc3
ClientRequestId: 2d05a5e0-efd1-4694-b221-1648a526ebc3
'

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,570 questions
0 comments No comments
{count} votes

Accepted answer
  1. Srinivasa Rao Darna 6,686 Reputation points Microsoft Vendor
    2022-11-02T17:02:13.143+00:00

    Hello @Anonymous ,

    Thanks for reaching Microsoft Q&A!

    It appears you are using Application permission (client secret credential flow), currently GET /solutions/bookingBusinesses/{id}/customers supported only with delegated permissions, please refer to bookingbusiness-list-customers.

    256513-image.png

    Also, refer to Get access on behalf of a user.

    Hope this helps.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful