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

Hi Puja - Context would help a great lot in this case. Does the variable have a prefix? Is it always at the same place? One approach would be regex, but there are many others. Can you please give us an example?