Skip to content

Commit

Permalink
Update Get-GraphRequestList.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Oct 3, 2024
1 parent 0546b72 commit 5958925
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ function Get-GraphRequestList {

$GraphRequestResults = New-GraphGetRequest @GraphRequest -Caller 'Get-GraphRequestList' -ErrorAction Stop
if ($GraphRequestResults.nextLink) {
$Metadata['nextLink'] = $GraphRequestResults.nextLink | Select-Object -Last 1
#$Metadata['nextLink'] = $GraphRequestResults.nextLink | Select-Object -Last 1
#GraphRequestResults is an array of objects, so we need to remove the last object before returning
$GraphRequestResults = $GraphRequestResults | Select-Object -First ($GraphRequestResults.Count - 1)
}
Expand Down

0 comments on commit 5958925

Please sign in to comment.