Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

how can i get a value from email body

(3) ShareShare
ReportReport
Posted on by 6
How can i get the value from the body of a email?
 
I have manny video with this question but i have a problem.
in the video`s i see that the name is like "Guide Last Name : Mol" and i get the name in the next row how can i get this?
and to make it more dificulte it is not always on the same place.
see the pictuer down here.
 
 
split(outputs('Html_to_text')?['body'],outputs('Compose_2'))
 
 
  • Suggested answer
    abm abm Profile Picture
    32,488 Most Valuable Professional on at
    how can i get a value from email body
    Hi
     
    The value you after is always at the end of the array? I am looking the example you had given, then you could use expression last() to get that value eg: Mol
     
    last(split(outputs('Html_to_text')?['body'],outputs('Compose_2')))
  • Suggested answer
    Michael E. Gernaey Profile Picture
    43,474 Super User 2025 Season 1 on at
    how can i get a value from email body
    Hi
     
    You said,
    and to make it more dificulte it is not always on the same place.
    see the pictuer down here.
     
    If your format is completely different each time, then you have to do a lot more work as you would need to identify the pattern the email uses, then use a Switch to then find the last name.
     
    It's not possible to write it for you as I do not know all the patterns you have.
    Also you should share the PRE-split data, not the split data as I have no idea why you have so many blanks or spaces because I cannot see the data.
     
     
     
     
     
  • Chriddle Profile Picture
    7,793 Super User 2025 Season 1 on at
    how can i get a value from email body
    I assume this is easier with the HTML. Can you show it?

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492