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 / Remove succeeding text
Power Automate
Unanswered

Remove succeeding text

(0) ShareShare
ReportReport
Posted on by 2

Hello folks - 

 

I'm new with the Power Automate but really enjoying playing with it since it's part of O365 ecosystem.

 

I'm currently working on something to capture a specific line from an email body and ignore the succeeding text. So far, I've managed to capture the text from the email body, thanks to the expression posted here, but it does also capture all the text after.

Screenshot 2022-08-20 210457.jpg

 

This is the expression I'm using: last(split(triggerBody()?['body'],'Message ID: '))

 

I think there are few tweaks needed on the expression, I just don't know what it is 🙂

 

 

Thank you!

Categories:
I have the same question (0)
  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    Hello @akosijesyang ,

    is there any particular character at the end of the string you want to grab?

    How do you want to limit the string extraction?

     

    If is there a specific character at the end, I think you could use an approach like the following:

    https://powerusers.microsoft.com/t5/Building-Flows/extract-s-string-between-two-characters/m-p/81139#M8072

     

    If I have answered your question, please mark my post as Solved.
    If you like my response, please give it a Thumbs Up.

    My blog site about Power Automate: https://powerautomatejoy.com/

    BR,

    Marco

  • akosijesyang Profile Picture
    2 on at

    Hello @MarconettiMarco - thank you for suggesting the link. I'll look at it.

     

    It's the "space" that separates the string I want to capture from the next section.

     

    Thank you.

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    ok @akosijesyang ,

    the instructions available in that link should work.

     

    If I have answered your question, please mark my post as Solved.
    If you like my response, please give it a Thumbs Up.

    My blog site about Power Automate: https://powerautomatejoy.com/

    BR,

    Marco

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

Last 30 days Overall leaderboard