Booking appointment customers visible in graph explorer but missing in C#
When fetching an appointment using the Graph Explorer like this:
I get the appointment with a customers list containing the customer id, name, email, etc.
But when fetching the exact same business and appointment using the C# graph SDK (version 5.68.0), the customers list only contains this when serialized to JSON:
customers": [{"additionalData": {},"backingStore": {"initializationCompleted": false,"returnOnlyChangedValues": false},"odataType": "#microsoft.graph.bookingCustomerInformation"}],
If I debug the code I can see that the response is a BookingCustomerInformation object (in a BookingCustomerInformationBase list) that contains the customerId:
But as soon as I render this as JSON, these fields disappears
What is the recommended approach to fix this?