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 / 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
    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

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard