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 / Gathering Email addres...
Power Automate
Unanswered

Gathering Email addresses from within an email body

(0) ShareShare
ReportReport
Posted on by 4

Hi Everyone ,

 

I'm trying to create a flow to get a list of email addresses from the body of an email that comes through every other day. I've changed some of the data the formatting is the same as below.

 

I have tied to use some compose actions to get the data after 'Click here' and it works but it gives me the whole email from the first address to the last, how can I get them all individually without the rest of the text in-between?

 

DiveshSinghZA_0-1661842934734.png

 

Thanks for the assistance

 

Categories:
  • okeks Profile Picture
    802 Super User 2024 Season 1 on at

    You could put the whole mail body into the split function splitting by the space character and then only keep the values which contain the @ character.

  • DiveshSinghZA Profile Picture
    4 on at

    Thanks for the response, I am new to Powerautomate so not sure how I set it only to keep values that contain an @ character.

    I just tried to use this :

    trim(first(split(last(split(body('Html_to_text'),'click Here.')),'To view the details of these records')))
    and it seems to work but only gives me the lower set of emails and not the top.

    How would I add the values that contain @ symbol to this?
  • DiveshSinghZA Profile Picture
    4 on at
    trim(first(split(last(split(body('Html_to_text'),'/22 - ')),'To view the details of these records')))
     
    This works for returning the first email. How can I get this to apply to all emails in the list 
  • okeks Profile Picture
    802 Super User 2024 Season 1 on at

    You can initialize an array with the value "split(last(split(body('Html_to_text'),'/22 - ')),'To view the details of these records')" and then run the trim function inside a Compose action on the array variable. This should create an Apply to Each automatically.

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 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard