Forum Discussion
Get all Auto Attendants or Call Queues
Hello
Hope you are all doing great
The commands:
Get-CsAutoAttendant or Get-CsCallQueue limits the output since some time to 100 rows.
Earlier there was a setting "-limit all". This is not available anymore.
Is there a possibility for a workaround
Regards
JFM_12
3 Replies
- Nivedipa-MSFT
Microsoft
@JFM_12 - Thanks for bringing this issue to our attention.
Yes, there is a workaround for the 100-row limit in Get-CsAutoAttendant and Get-CsCallQueue since the -Limit All parameter is no longer available.
You can use the -First and -Skip parameters to page through results and retrieve all items:
# Get the first 100
$allAAs = Get-CsAutoAttendant -First 100# Continue fetching in batches of 100
$skip = 100
do {
$batch = Get-CsAutoAttendant -First 100 -Skip $skip
if ($batch.Count -gt 0) {
$allAAs += $batch
$skip += 100
}
} while ($batch.Count -gt 0)# $allAAs now contains all auto attendants
Repeat the same logic for Get-CsCallQueue.
Thanks,
Nivedipa
---------------------------------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
- JFM_12Iron Contributor
Hi Nivedipa-MSFT
Thank you
Regards
JFM_12- Nivedipa-MSFT
Microsoft
@JFM_12 - If you found the above response helpful, we would appreciate your feedback through the Microsoft Teams Developer Community Response Feedback link? Your input helps us improve our support.