Flow - Acquire email address from Body or Header of email Received

Akos Szilagyi
Tera Expert

Hi All! I would appreciate some help from anyone. I have a flow that triggers on an inbound email, and I use some values from the email record to populate a catalog item and it's variables, also attaching the attachment from the email. My Use Case is the following. Address1 (not SN based User) sends an email to Address 2 (Has user record in SN). Address 2 forwards to Address3 (Servicenow Instance Mailbox) - This triggers the flow to create a Catalog Item. There is a requirement to parse the body of this forwarded email for Address 1. How could this be done easily in flow? Thanks for the help!

1 ACCEPTED SOLUTION

Akos Szilagyi
Tera Expert

I solved the issue, thanks for the recommendation anyway! The solution was using regex to look for emails in the body, and capture that as a scripted action output. The hard part was figuring out which email from the trail we need to capture.

View solution in original post

5 REPLIES 5

ricker
Tera Guru

Akos,

Why?  If it is to create a user record for address 1 there are easier ways.

Hi! I do not want to create a User ID, I want to use that email address as a variable in a request.

Akos Szilagyi
Tera Expert

I solved the issue, thanks for the recommendation anyway! The solution was using regex to look for emails in the body, and capture that as a scripted action output. The hard part was figuring out which email from the trail we need to capture.

PujaKar
Tera Contributor

can you please explain like how you extract variable value from email body in FLOW.