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 Automate
Unanswered

Trim text in Output

(0) ShareShare
ReportReport
Posted on by 73

All, 

 

 

This is my Output of my compose step. 

 

RUN-CAC: Testing123

I would like to create a new compose step to only parse the "Testing123". So essentially I need to trim out the bolded text.

Does anyone know how I can achieve this? 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,858 Most Valuable Professional on at

    Your parentheses are unbalanced.  You have 3 open parentheses and 4 closing parentheses.  Remove one of the closing parentheses.

  • BJ94 Profile Picture
    264 on at

    Hi @ScottShearer 

    I am using same formula as you given but it says expression is invalid.

     

    BJ94_0-1671534197393.png

     

  • BJ94 Profile Picture
    264 on at

    Hi @PowerAppsUser99 

    You can use Split function to split the string.

     

    split(variables('MyString'),'with')
     
    and save output. 
     

    ------------------------------------------------------------------------------------------

    Regards,

    Bharti

    Community Support Team _ Bharti
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     
  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @PowerAppsUser99 

    Following up on what @Pstork1 has offered, here is an example of the split() technique:

    image.pngimage.png

     

  • Pstork1 Profile Picture
    68,858 Most Valuable Professional on at

    If the text at the front is always RUN-CAC: then you could do a simple replace() to replace 'RUN-CAC: ' with ''.  If its something else each time, but always ending in a : then you could do a split and use Last() and Trim to get the value.

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
David_MA Profile Picture

David_MA 245 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 207 Most Valuable Professional

#3
trice602 Profile Picture

trice602 185 Super User 2025 Season 2

Last 30 days Overall leaderboard