Hi
I am try to extract three things from a email into a list, i was wondering if some could guide me how to do it ?
All want to do is take the order number from email,name of person,their problem.
Thanks
Email address
Name
Order
Problem
I have tried to use :
to grab the text BEFORE the # symbol : first(split(body('Html_to_text'),'#'))
to grab the text AFTER the # symbol : last(split(body('Html_to_text'),'#'))
but this doesn't seem to work i have even tried to convert into lines but i am struggling.
Example of an email 1
Hi,
We have received the below from a customer. Please can you confirm what actions need to be taken so we can relay this to the customer or if able please can you contact the customer directly.
Firstname Lastname
###@gmail.com
W12433311-1M-V
----------------------------------------------
!*** Firstname Lastname was not signed in when this comment was submitted. Learn more ***!
Firstname Lastname, 14 Dec 2022, 09:42
I still haven’t received my order can you pls update me
‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ Conversation ID: 42581102-8a97-11ed-9d64-7d7cb637a4b4 42581102-8a97-11ed-9d64-7d7cb637a4b4 49be6de
Example 2
Hi,
We have received the below from a customer. Please can you confirm what actions need to be taken so we can relay this to the customer or if able please can you contact the customer directly.
Firstname Lastname
#####@yahoo.co.uk
W12617455-2M-V
----------------------------------------------
!*** Firstname Lastname was not signed in when this comment was submitted. Learn more ***!
Firstname Lastname, 2 Jan 2023, 05:36
I ordered this item weeks ago and it still hasn't arrived. I would like to be refunded please.
------------------
Submitted from:
‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ Conversation ID: 48d7040b-8a7c-11ed-a8ee-96d2e547bdbc 48d7040b-8a7c-11ed-a8ee-96d2e547bdbc 49be6de