Hello! I'm new to this forum and new to using flows.. I tried to create something, but it won't work..
Here is what I try to achieve:
When a e-mail is send to my e-mail adres, I want to check the mail for the word 3S (it's the start of a track trace code) If the mail contents a track trace code (it also can be in HTML) then I want to save the 3S code (and the part that comes after the 3S phrase) to an excel document.
So if for example this happens:
I receive an e-mail with the code 3SDLAJ002796980 in it, a row is added to my excel document where only the code is saved.
Is this possible? Or am I trying to create something impossible?
Thank you!
Hi @robin91
Thanks for your posting.
Accordingly to your description, you would like to obtain trace code in emails if exist. If there is any misunderstood, please kindly let me know.
We can use split function to achieve your requirement. Here is my email body:
This is my excel file, you can add more columns if necessary.
Then, please check my flow details:
In code area, we need to filter code info only, the fx I used is : take(last(Split(outputs('Html_to_text')?['body'],'3S')),13)
Once completed, I got date in excel as below:
Hope the content above may help you.
Thanks
Anna
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2