microsoftgraph / msgraph-sdk-dotnet

Microsoft Graph Client Library for .NET!
https://graph.microsoft.com
Other
690 stars 246 forks source link

Subject received as null, in getSchedule API response when requested for multiple emails #2637

Closed Md-husain0522 closed 1 week ago

Md-husain0522 commented 3 weeks ago

In Graph API, getSchedule action - When the request is sent for multiple emails, other than the first emailid in the list, the subject of the scheduled Items for other emailIds are reseived as null in response.

Request:

image

Response:

image
andrueastman commented 2 weeks ago

Thanks for raising this @Md-husain0522

Any chance you can share a full code sample of the request and how you are reading the response in this scenario?

Md-husain0522 commented 2 weeks ago

In addition to Request data image shared, the below is the API call:

image

the response is a "Value" array, with the response format as per documentation same as below:

image

The value array and other elements of the response are accessible by "result.value" and no further parsing is applied on the response.

andrueastman commented 2 weeks ago

How are you serializing the result object to get the json string? Are you using the serialization helpers?

https://learn.microsoft.com/en-us/openapi/kiota/serialization?tabs=csharp#serialization-helpers

This should look something like

var jsonString = await KiotaSerializer.SerializeAsStringAsync("application/json", result, false);
microsoft-github-policy-service[bot] commented 1 week ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.