@odata.nextLink missing when trying to get places from Microsoft Graph

Viewed 39

I have the following code to get places from Microsoft Graph:

    var queryOptions = new List<QueryOption>() { new QueryOption("$count", "true") };         
    var roomUrl = graphClient.Places.AppendSegmentToRequestUrl("microsoft.graph.room");
    var response = await new GraphServicePlacesCollectionRequest(roomUrl, graphClient, queryOptions).Top(100).GetAsync();                    
    var nextPageUrl = response.AdditionalData.TryGetValue("@odata.nextLink", out object nextLink) ? nextLink.ToString() : string.Empty;

On running this, I see @odata.nextLink value is missing from the response (there should be a next page link). What am I missing?

0 Answers
Related