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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / how can i get a value ...
Power Automate
Suggested Answer

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'))
 
 
Categories:
I have the same question (0)
  • Chriddle Profile Picture
    8,441 Super User 2025 Season 2 on at
    I assume this is easier with the HTML. Can you show it?
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,369 Super User 2025 Season 2 on at
    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.
     
     
     
     
     
  • Suggested answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at
    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')))

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard