')
256 | $null = $htmlBody.Add('Status | ' + $ticket_status + ' |
')
257 | $null = $htmlBody.Add('Organization | ' + $organizationName + ' |
')
258 | $null = $htmlBody.Add('Classification | ' + $($event.Classification.substring(0, 1).toupper() + $event.Classification.substring(1)) + ' |
')
259 | $null = $htmlBody.Add('User Impact | ' + $event.ImpactDescription + ' |
')
260 | $null = $htmlBody.Add('Last Updated | ' + "{0:yyyy-MM-dd H:mm}" -f [datetime]$event.lastModifiedDateTime + ' |
')
261 | $null = $htmlBody.Add('Start Time | ' + "{0:yyyy-MM-dd H:mm}" -f [datetime]$event.startDateTime + ' |
')
262 | $null = $htmlBody.Add('End Time | ' + $(
263 | if ($event.endDateTime) {
264 | "{0:yyyy-MM-dd H:mm}" -f [datetime]$event.endDateTime
265 | }
266 | else {
267 | $null
268 | }
269 | ) + ' |
')
270 |
271 | $latestMessage = ($event.posts[-1].description.content) -replace "`n", "
"
272 |
273 | $null = $htmlBody.Add('Latest Message | ' + $latestMessage + ' |
')
274 | $null = $htmlBody.Add('
')
275 | $null = $htmlBody.Add('