Error trying to Parse Email to Output Variable in Flow Designer

ServNowDev
Tera Guru

I am trying to parse an email and pull out values in the email that are key value pairs, such as Country: USA and place that info into a catalog item and submit the info, I have been using the Action - Parse Email Flow Action v2.1 https://developer.servicenow.com/connect.do#!/share/contents/8408077_parse_email_flow_action?t=PRODU...

 

by Ben Scherer and I am using a Vancouver instance. I keep getting an error message that the script cannot convert Null into an object.

 

So far I have a catalog item that accepts one single line field, country.

Screenshot 2023-08-08 at 8.17.11 AM.png
 
 
Then a flow that accepts an inbound email that in the body has country: usa  , then it goes to the parse email action, then tied to the catalog item where it should place that value.
 
Screenshot 2023-08-08 at 8.21.52 AM.png

 so a few things is when I run it , it does not place the value in the catalog item field for country . next the email-vars to handle output variables is empty and the error Script cannot read property 1 from null appears.

Screenshot 2023-08-08 at 8.29.30 AM.png

Screenshot 2023-08-08 at 8.29.53 AM.png

Screenshot 2023-08-08 at 8.28.49 AM.png

any help with how to run this to retrieve key value pairs
 

 

 

 

0 REPLIES 0