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 / Extracting text from e...
Power Automate
Unanswered

Extracting text from email

(0) ShareShare
ReportReport
Posted on by 11

hi 

 

I have managed to extract text from one point to another - I used Html to text and by using Compose : 

trim(first(split(last(split(body('Html_to_text'),'When will this happen:')),'How this will affect your organization:'))) that seems to work .
However trying to extract some text without capturing links/logos from the email - For example see screen shot I would like to grab all the text before 'When this will happen' and also not include the Microsoft Logo... Any ideas ?  
 
Uddinf_0-1658399321275.png

 

I tried to use 'Filter array' 

Uddinf_1-1658399759721.png

 

and compose : 

join(split(body('Filter_array')[4], ' '), ' ') - Not working 
Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Uddinf ,

     

    I suggest you to add a 'Convert HTML to text' to convert the email into plain text and then use the split function to get the string before 'When this will happen:'.

    vbofengmsft_0-1658468678265.png

     

    Best Regards,

    Bof

     

  • Uddinf Profile Picture
    11 on at

    @v-bofeng-msft thanks for your response. 

     

    I am already using  'Html to text'

     

    Uddinf_0-1658915082625.png

    And also got s Filter array the Outputs for length 

    Uddinf_1-1658915245116.png

     

    And using Split function 

    join(split(body('Filter_array')[2], ' '), ' ')

     

    This is the complete flow :

    Uddinf_2-1658915357695.png

     

    My aim is that I do not want to pick up the Microsoft logo on the top of the email. just want to extract the heading text. 

     

     

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 976

#2
Valantis Profile Picture

Valantis 863

#3
Haque Profile Picture

Haque 547

Last 30 days Overall leaderboard