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

Trim characters

(0) ShareShare
ReportReport
Posted on by 73

All, 

 

I would like to create a new compose step to only parse "Meeting Test". I would like to remove the other characters. Does anyone know how I can achieve this? 

 

 

PowerAppsUser99_1-1671740921778.png

 

PowerAppsUser99_0-1671740863053.png

 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @PowerAppsUser99 ,

     

    Please try:

    split('LAN-CEC:Meeting Test',':')[1]

     

    Best Regards,

    Bof

  • PowerAppsUser99 Profile Picture
    73 on at

    What if the variables will change too 

    LAN-CEC: Test2

     

    The LAN-CEC: will always remain but the other text will constantly change. How would I split this?

  • Verified answer
    grantjenkins Profile Picture
    11,063 Moderator on at

    See example below.

     

    Compose contains your data (which could change).

    grantjenkins_0-1671952435537.png

     

    Compose 2 splits the output from Compose, then gets the last item and trims any extra spaces.

    trim(last(split(outputs('Compose'), ':')))

    grantjenkins_1-1671952501558.png

     

    The output from Compose 2 in this example would be:

    grantjenkins_2-1671952542609.png

     

    If the data in Compose changed then Compose 2 would get that data.

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @grantjenkins ,

     

    Please try:

    split(triggerOutputs()?['body/subject'],':')[1]

     

    vbofengmsft_0-1672105029293.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

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

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard