web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filtering part of email
Power Automate
Answered

Filtering part of email

(0) ShareShare
ReportReport
Posted on by

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!

Categories:
  • Verified answer
    v-duann-msft Profile Picture
    Microsoft Employee on at

    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:

    v-duann-msft_0-1611555816046.png

     

     

    This is my excel file, you can add more columns if necessary.

    Subject

    Sender

    Code

     

    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)

    v-duann-msft_1-1611555816052.png

     

     

    v-duann-msft_2-1611555816056.png

     

     

    Once completed, I got date in excel as below:

    v-duann-msft_3-1611555816056.png

     

     

    Hope the content above may help you.

     

    Thanks

    Anna

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 273 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 235

#3
David_MA Profile Picture

David_MA 172 Super User 2026 Season 2

Last 30 days Overall leaderboard