SDK Microsoft.Graph C# and places doesn't work

YH-5466 41 Reputation points
2022-01-13T16:56:22.933+00:00

Hi,

I have created a Microsoft Graph application on Azure Portal.
I use the SDK Microsoft.Graph 4.15.0 C# to get all the room objects in my tenant as the sample 1 on the webSite : https://learn.microsoft.com/en-us/graph/api/place-list?view=graph-rest-1.0&tabs=csharp

The sample 1 doesn’t work with Managed API C# :
var room = await graphClient.Places .Request() .GetAsync();

I must use : var room = await graphClient.Places.AppendSegmentToRequestUrl("microsoft.graph.room") .Request() .GetAsync(); and "Optional query parameters" doesn't work with the lastest C# SDK package too (Ex: $top(1) returns all items and not the first when I use it with AppendSegmentToRequestUrl).

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

2 answers

Sort by: Most helpful
  1. Sheena-MSFT 1,721 Reputation points
    2022-02-18T17:52:17.983+00:00

    Hi @YH-5466 ,

    Currently places API doesn't return custom page size and it is added as a known bug. One of our customer had a similar issue with this API. Then we found that it is a known bug. It is being worked upon and will be available in the future release.

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

    0 comments No comments

  2. YH-5466 41 Reputation points
    2022-03-15T13:27:18.343+00:00

    This morning, when I call the Places API (https://graph.microsoft.com/v1.0/places/microsoft.graph.room) with Graph Explorer, I don't get all my resources.
    Yesterday, It was OK
    I have more than 200 resources.

    0 comments No comments