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 / How to get specific pa...
Power Automate
Answered

How to get specific parts of string

(0) ShareShare
ReportReport
Posted on by 12

Hi. I have an outlook mailbox mensage in the following format:

 

Email notification!

text1/ text2 / text3/ text4 

Thank you for using our Plataform!

How can i extract:
text1

text2 

text3

text3

 

Thank you for your support

 

Categories:
I have the same question (0)
  • Verified answer
    Sundeep_Malik Profile Picture
    6,501 on at

    Hey @Davidn7 

    I have a solution for you if the body of the email remains static always like the above case.

    Do the following:

    First use html to text action:

    Sundeep_Malik_0-1664468476106.png

    Take a string variable with empty line:

    Sundeep_Malik_2-1664468539228.png

     

     

    After that use the following expression in a compose:

    split(split(replace(outputs('Html_to_text')?['body'],'/',''),variables('A'))[2],' ')

    Sundeep_Malik_1-1664468489223.png

    Firstly I have done replace to remove the / slash. After that I am splitting whereever it finds an extra line. So while using the html to text an extra line comes. After that I am using another split to just take out the text values.

    You can also use separate compose actions and expressions as well:

    Separate expressions:

    replace(outputs('Html_to_text')?['body'],'/','')

    split(outputs('Compose_2'),variables('A'))

    split(outputs('Compose_3')[2],' ')

    Sundeep_Malik_3-1664468741521.png

     

    Final Output:

    Sundeep_Malik_4-1664468786282.png

     

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard