We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5809ee commit 0d1e899Copy full SHA for 0d1e899
delete.ps1
@@ -203,7 +203,7 @@ try {
203
204
Write-Verbose "Error at Line [$($ex.InvocationInfo.ScriptLineNumber)]: $($ex.InvocationInfo.Line). Error: $($errorMessage.VerboseErrorMessage)"
205
206
- if ($errorMessage.AuditErrorMessage -Like "No AFAS employee found AFAS employee where [$($correlationProperty)] = [$($correlationValue)]") {
+ if ($errorMessage.AuditErrorMessage -Like "No AFAS employee found AFAS employee*") {
207
$outputContext.AuditLogs.Add([PSCustomObject]@{
208
Action = "DeleteAccount"
209
Message = "No AFAS employee found AFAS employee where [$($correlationProperty)] = [$($correlationValue)]. Possibly deleted."
0 commit comments