inbound action - field not read from the inbound incident email

RazvanT
Giga Contributor

Hello all


We are trying to map an incoming customer incident notification to Service now and we have some problems reading the information from the inbound email.
For some fields we try to read from the email we are successful, however for one in particular it fails.
Below are 2 examples of how we perform the reading:
    current.u_lh_component_s = email.body.components; // successfully read

    current.u_lh_description = email.body.description; // fails to read

The "components" field is correctly read from the inbound email however the "description" field is not and is always empty.

 

The "u_lh_component_s@" field is defined in SNOW as string, while @"u_lh_description" is html.

I added below the information as it is received in the inbound email for the 2 fields.

 

Please advise why the different behavior for the 2 fields and how should we read the "description" field information from the inbound mail.

 

Thank you

 

// capture from the inbound email

(...)

<tr class="field-update">
<td valign="top" align="left" class="updates-diff-label" style="border-collapse:collapse; border-spacing:0px; color:#172b4d; padding:0px; max-width:150px; vertical-align:top; color:#5e6c84; text-align:left; padding-right:10px; padding-bottom:5px">
Components:</td>
<td valign="top" align="left" class="updates-diff-content" style="border-collapse:collapse; border-spacing:0px; color:#172b4d; padding:0px; vertical-align:top; text-align:left; padding-bottom:5px">
TAC</td>
</tr>

<tr class="field-update">
<td valign="top" align="left" class="updates-diff-label" style="border-collapse:collapse; border-spacing:0px; color:#172b4d; padding:0px; max-width:150px; vertical-align:top; color:#5e6c84; text-align:left; padding-right:10px; padding-bottom:5px">
Description:</td>
<td valign="top" align="left" class="updates-diff-content" style="border-collapse:collapse; border-spacing:0px; color:#172b4d; padding:0px; vertical-align:top; text-align:left; padding-bottom:5px">
<p style="margin-top:0; margin-bottom:10px; margin:1em 0; margin:0; margin-top:0">
Description field for GOA Test Incident 2024-11-12-02</p>
<p style="margin-top:0; margin-bottom:10px; margin:1em 0; margin:0">Row 02</p>
<p style="margin-top:0; margin-bottom:10px; margin:1em 0; margin:0">Row 03</p>
<p style="margin-top:0; margin-bottom:10px; margin:1em 0; margin:0">&nbsp;</p>
</td>
</tr>

(...)

 

 

0 REPLIES 0