Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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 
  • Uddinf Profile Picture
    11 on at
    Re: Extracting text from email

    @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. 

     

     

  • v-bofeng-msft Profile Picture
    on at
    Re: Extracting text from email

    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

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow