Skip to main content

Notifications

Power Automate - General Discussion
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!

  • MarconettiMarco Profile Picture
    MarconettiMarco 3,812 on at
    Re: Remove succeeding text

    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

  • akosijesyang Profile Picture
    akosijesyang 2 on at
    Re: Remove succeeding text

    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
    MarconettiMarco 3,812 on at
    Re: Remove succeeding text

    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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard