"List all the room lists defined in the tenant" C# example doesn't compile against the v5 SDK
'PlaceItemRequestBuilder' does not contain a definition for 'GetAsync' and no accessible extension method 'GetAsync' accepting a first argument of type 'PlaceItemRequestBuilder' could be found (are you missing a using directive or an assembly reference?)
I don't think this looks right:
await graphClient.Places["{place-id}"].GetAsync();
Based on the Rooms example above, it feels like it should be more along the lines of:
var result = await graphClient.Places.GraphRoomList.GetAsync();
But there doesn't seem to be a GraphRoomListRequestBuilder object defined, and no such property that would return one within PlacesRequestBuilder.
In the v4 SDK I had to do something along the lines of:
var roomlistsRequestUrl = graphClient
.Places
.AppendSegmentToRequestUrl("microsoft.graph.roomList");
var roomlistsRequest = new GraphServicePlacesCollectionRequestBuilder(roomlistsRequestUrl, graphClient)
.Request();
var roomListResponse = await roomlistsRequest.GetAsync();
I'm wondering if it's possible to get something equivalent working against v5? Thanks!
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 4b836740-9263-12cc-9001-c61f08448f0d
- Version Independent ID: 4a5b79f8-d685-6c86-d7ed-12d7c5d309cb
- Content: List places - Microsoft Graph v1.0
- Content Source: api-reference/v1.0/api/place-list.md
- Product: outlook
- Technology: microsoft-graph
- GitHub Login: @vrod9429
- Microsoft Alias: MSGraphDocsVteam