MS Bookings cannot create appointment

Copper Contributor

I've created custom connector using the Booking API. When trying to create an appointment, I get the following error: 

{
  "error": {
    "code": "InvalidModel",
    "message": "changes: Cannot create an abstract class.",
    "innerError": {
      "date": "2022-03-24T04:03:32",
      "request-id": "8bd7b2c5-e8bc-4077-affa-e7029261cce4",
      "client-request-id": "8bd7b2c5-e8bc-4077-affa-e7029261cce4"
    }
  }
}
This error only occurs when I add an existing customer (customerid) to the appointment but if I let the customerid blank, the flow works. Unfortunately, it is useless since I need the appointment to include the customer. 
Any help is appreciated...
2 Replies

@astheo1002 

 

It worked for me when I included odata.type property in the request for customer information

 

{
    "customers": [
        {
            "customerId": "<GUID of customer id>",
            "@odata.type": "#microsoft.graph.bookingCustomerInformation"
        }
    ],
}

A partir de los 25 años, la piel se deshidrata más fácilmente. La renovación celular es menos activa (sobre todo si se es fumador o fiestero) www.virtuallaborama.be/
 y es el momento en que aparecen nuestras primeras arrugas.