question

atheodat-5019 avatar image
0 Votes"
atheodat-5019 asked Buster-1874 answered

MS Booking API - Create appointment

I've created a custom connector in Power Automate for MS Bookings. When trying to book an appointment via the api for an existing customer, I get the following error:
changes: Cannot create an abstract class.

This error happens only when I try to add a customer to the appointment.
Can someone please tell me how to enter the a customer when creating a new appointment?

microsoft-graph-customer-booking
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.

Sheena-MSFT avatar image
0 Votes"
Sheena-MSFT answered

Hi @atheodat-5019,

According to this document we have to pass the customer id while creating or updating the appointment for an existing customer .

To fetch customer id use the below endpoint bookingbusiness-list-customers

 GET /solutions/bookingBusinesses/{id}/customers

185560-booking4.png

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





booking4.png (54.8 KiB)
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.

Buster-1874 avatar image
0 Votes"
Buster-1874 answered

I experience the same problem. I also get the error

 changes: Cannot create an abstract class,

I am using a customer that I just created (which also shows in the list of customers), so an invalid customer is not the case here. Max attendees is set to 1, so these conditions are not in place, but the customer does exist.

Any help would be highly appreciated.

I am investigating whether the MS Bookings api (part of Graph) would be something we can use. Since this is not the only issue I ran into, I have my doubts...


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.