We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa8aeb5 commit 73f5001Copy full SHA for 73f5001
Modules/CIPPCore/Public/GraphHelper/New-ExoBulkRequest.ps1
@@ -130,7 +130,7 @@ function New-ExoBulkRequest {
130
if ($body.'@adminapi.warnings') {
131
Write-Warning ($body.'@adminapi.warnings' | Out-String)
132
}
133
- if ($body.error) {
+ if (![string]::IsNullOrEmpty($body.error.details.message) -or ![string]::IsNullOrEmpty($body.error.message)) {
134
if ($body.error.details.message) {
135
$msg = [pscustomobject]@{ error = $body.error.details.message; target = $body.error.details.target }
136
} else {
0 commit comments