Booking appointment customers visible in graph explorer but missing in C#

Oskar Persson 20 Reputation points
2025-01-22T11:32:55.5266667+00:00

When fetching an appointment using the Graph Explorer like this:

https://graph.microsoft.com/v1.0/solutions/bookingBusinesses/<businessID>/appointments/<appointmentID>

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:

User's image

But as soon as I render this as JSON, these fields disappears

User's image

What is the recommended approach to fix this?

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

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.