Hi Pitstop Community,
I am trying to extract notes from a ticket in a reader friendly format.
I have used an online powershell script from pitstop to extract certain parts of request, construct an email with HTML and then send this to a distribution list.
Extracting the request details is straight forward (some example) as below but I cannot find notes.
#Add Request fields values as needed
$ticket = $obj.request.WORKORDERID #Request ID
$notes = $obj.request.NOTES #Notes
#Email message body [HTML]
$body = @"
<tr>
<td><b><font size="3" face="Calibri, Verdana, Arial, sans-serif">Request ID:</font></b></td>
<td colspan="6"><font face="Calibri, Verdana, Arial, sans-serif" size="3">$ticket</font></td>
</tr>
<tr>
<td><b><font size="3" face="Calibri, Verdana, Arial, sans-serif">Notes</font></b></td>
<td colspan="6"><font face="Calibri, Verdana, Arial, sans-serif" size="3">$notes</font></td>
</tr>
"@
How can I extract the notes as a string and then write to my HTML table?
Thank you.