Flow Designer Inbound eMail - how to extract content from eMail body to populate fields

Stuart Diener
Kilo Expert

Hello,

I am looking into using the Inbound Email capability in Flow Designer.

What I have not found any information on yet is how to extract certain sections of the eMail body so that this information can be populated into a record.

I want to do the equivalent of what can be done in Inbound Actions for example:

if (email.body.assign != undefined)
current.assigned_to = email.body.assign;

 

Also - we get notifications in 2 formats.  Text with details in a key value pair arrangement, from which it is easier to get the value for the attribute.  And then also in HTML, but the information is not laid out in the same key value pair format.  Anyone had any luck parsing HTML to just pull out the  equivalent of a value for a given key (so to speak)?

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Stuart,

sharing few links; they should help you

https://developer.servicenow.com/blog.do?p=/post/ny_flow_designer/

https://community.servicenow.com/community?id=community_question&sys_id=6e614cabdbe480102be0a851ca96...

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

Regards
Ankur

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

 

This shed a little more light on things, but not enough to resolve my question.

It is not clear to me why it is necessary to first create a record and then use the associate action to tie the 2 together, except that this makes an update to the source email record in the sys_email table?

The Associate function does not help me isolate components of the eMail body to use as values in the Incident I create.

Hi Stuart,

I haven't explored more on this.

But I assume you require this

1) there will be an incoming email to the instance

2) now you need a flow to process that and create record

Will let you know if I try and find something on this

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

lexveldkamp
Tera Contributor
Catalog Items are just a way to define inputs and launch flow. There are many reasons why the catalyst may be email. STEP BY STEP - Create the Catalog Flow as if you assumed form entry. - Create a new Flow Action to parse an email body for name:value pairs (OR download from share) - Create a ...