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

Get-MgPlaceAsRoom -All not working as expected

Open trudolf-msft opened this issue 8 months ago • 1 comments

Describe the bug

Unable to use the parameter -All with the command Get-MgPlaceAsRoom or Get-MgBetaPlaceAsRoom There is no error at execution but this command return only the 100 first object. So you have the same result with or without -All

Reference to bug #2825

Expected behavior

Return all objects

How to reproduce

Execute Get-MgPlaceAsRoom -All when you have more than 100 objects

SDK Version

2.25.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

PowerShell_transcript.TRUDOLF3.v5g9R9+o.20250417092056.txt

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

trudolf-msft avatar Apr 17 '25 07:04 trudolf-msft

Per documentation, it looks like this API should support paged results. https://learn.microsoft.com/en-us/graph/api/place-list?view=graph-rest-1.0&tabs=http. The API response is not showing a nextlink to follow for paged response. Customer has not stated the expected results so it is possible that 100 is how many rooms are available for the result set.

MIchaelMainer avatar Oct 20 '25 20:10 MIchaelMainer