Skip to content

Commit 73f5001

Browse files
committed
fix exo bulk request
1 parent fa8aeb5 commit 73f5001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/GraphHelper/New-ExoBulkRequest.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function New-ExoBulkRequest {
130130
if ($body.'@adminapi.warnings') {
131131
Write-Warning ($body.'@adminapi.warnings' | Out-String)
132132
}
133-
if ($body.error) {
133+
if (![string]::IsNullOrEmpty($body.error.details.message) -or ![string]::IsNullOrEmpty($body.error.message)) {
134134
if ($body.error.details.message) {
135135
$msg = [pscustomobject]@{ error = $body.error.details.message; target = $body.error.details.target }
136136
} else {

0 commit comments

Comments
 (0)