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 / Pulling info from emai...
Power Automate
Unanswered

Pulling info from email into table

(0) ShareShare
ReportReport
Posted on by

Hi,

 

Completely new to Flow, know virtually nothing about programming/coding languages, so this is super frustrating.

 

I'm trying to use the Track Outlook emails in a Table. This works, but I need the flow to extract some data from the body of the text into a column which I can then filter. I don't want to whole email body to be entered into the column.

Flow I've created

The email I'll receive

The only part which will differ is the "earning the XX badge", which is what I want it to extract.

Most of the other solutions listed are pulling text from the Body and don't use the original data - not keeping the 'From' 'Subject' etc, in the original Flow, so they don't help.

 

Any help is gratefully received as this is something which would be great for me to track!

 

Thanks,

 

Juli

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @elearning,

     

    Do you want extract the info “xx badge” from the email body?

    If the email body always has the same format, please take the following configuration for a reference.

    Add the trigger When a new email arrives.

    Add the action Html to text to convert the email body to text.

    Add Compose action with the following code to return the starting position of “earning the”:

    indexOf(body('Html_to_text'),'earning the')

     Add Compose2 action with the following code to return the starting position of “'view my earned badges”:

    indexOf(body('Html_to_text'),'view my earned badges')

     Add Compose3 action to return the badge information:

    substring(body('Html_to_text'),add(outputs('Compose'),12),sub(outputs('Compose_2'),add(outputs('Compose'),12)))

    Then you could add the returned value into an Excel table.

    1.PNG2.PNG

    Besides, there is connector MailParser could be used to extract data from emails. You could also take a try with it. More details about MailParser for your reference:

    https://docs.microsoft.com/en-us/connectors/mailparser/

     

    Best regards,

    Mabel

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard