diff --git a/Calendar/CalLogHelpers/TimelineFunctions.ps1 b/Calendar/CalLogHelpers/TimelineFunctions.ps1 index 00cddb121f..93a1cba774 100644 --- a/Calendar/CalLogHelpers/TimelineFunctions.ps1 +++ b/Calendar/CalLogHelpers/TimelineFunctions.ps1 @@ -423,7 +423,7 @@ function TimelineRow { } } ResourceBookingAssistant { - if ($callog.TriggerAction -eq "MoveToDeletedItems") { + if ($CalLog.TriggerAction -eq "MoveToDeletedItems") { [array] $Output = "ResourceBookingAssistant Deleted the Cancellation." } else { [array] $Output = "ResourceBookingAssistant $($CalLog.TriggerAction)d the Cancellation." diff --git a/Calendar/Get-RBASummary.ps1 b/Calendar/Get-RBASummary.ps1 index 4f8b1d2ce8..03edb2a9aa 100644 --- a/Calendar/Get-RBASummary.ps1 +++ b/Calendar/Get-RBASummary.ps1 @@ -610,8 +610,8 @@ function RBALogSummary { } # Making RBA Log more readable. - $RBALog = $RBALog.replace(", Entry Action: Message, LogComment","") - $RBALog = $RBALog.replace("Mailbox: ","") + $RBALog = $RBALog.replace(", Entry Action: Message, LogComment", "") + $RBALog = $RBALog.replace("Mailbox: ", "") $Filename = "RBA-Logs_$($Identity.Split('@')[0])_$((Get-Date).ToString('yyyy-MM-dd_HH-mm-ss')).txt" Write-Host "`r`n`t RBA Logs saved as [" -NoNewline