Skip to content

Commit 2416985

Browse files
committed
Update Test-CIPPAuditLogRules.ps1
1 parent e99e8c6 commit 2416985

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/CIPPCore/Public/Webhooks/Test-CIPPAuditLogRules.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ function Test-CIPPAuditLogRules {
162162
$HasLocationData = $true
163163
}
164164
}
165+
$Data.AuditRecord = $AuditRecord
165166
$Data | Select-Object *,
166-
@{n = 'HasLocationData'; exp = { $HasLocationData } },
167-
@{n = 'AuditRecord'; exp = { $RootProperties | ConvertTo-Json -Compress } } -ExcludeProperty ExtendedProperties, DeviceProperties, parameters
167+
@{n = 'HasLocationData'; exp = { $HasLocationData } } -ExcludeProperty ExtendedProperties, DeviceProperties, parameters
168168
} catch {
169169
#write-warning "Audit log: Error processing data: $($_.Exception.Message)`r`n$($_.InvocationInfo.PositionMessage)"
170170
Write-LogMessage -API 'Webhooks' -message 'Error Processing Audit Log Data' -LogData (Get-CippException -Exception $_) -sev Error -tenant $TenantFilter

0 commit comments

Comments
 (0)