msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

Invoke-MgGraphRequest should have FollowRelLink parameter

Open AspenForester opened this issue 1 year ago • 2 comments

As a user accessing large collections of graph objects, I want Invoke-MgGraphRequest to have -FollowRelLink and -MaximumFollowRelLink parameters like Invoke-RESTMethod does so that I don't have to cook up my own pagination handlers. Ideally this support would extend to the responses from the "Batch" endpoint as well.

AspenForester avatar May 04 '23 18:05 AspenForester

Return @odata.nextLink for Invoke-MgGraphRequest Expected experience URI to include the page size you need e.g. "https://graph.microsoft.com/v1.0/users?$top=5" Response to include "@odata.nextLink" to get the next pages.

Reference: https://learn.microsoft.com/en-us/graph/paging?tabs=powershell

CarolKigoonya avatar Feb 12 '24 08:02 CarolKigoonya

Any movement on this? Also looking to make writing scripts that $batch a little easier

joshtransient avatar Jul 25 '24 12:07 joshtransient