Skip to content

Get-MgBookingBusinessAppointment -All only returns the first 100 appointments #1351

@cookmatt

Description

@cookmatt

Executing:

$bookingBusinessId='[email protected]'
Get-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -All

returns 100 appointments.

However, via the API more than 100 are returned, for example -

$appointments=@()
$uri="/v1.0/solutions/bookingBusinesses/$bookingBusinessId/appointments"
do {
    $result=Invoke-MgGraphRequest -Method GET -uri $uri
    $appointments+=$result.value
    $uri=$result.'@odata.nextLink'
} until ($null -eq $result.'@odata.nextLink')

The issue was initially spotted in 1.9.4 but appears to still be present in 1.10.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions