Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Remove text within parenthesis

(0) ShareShare
ReportReport
Posted on by 12

I am trying to remove the text within the parenthesis as well as the parenthesis. The input is from Sharepoint "create item". In another flow, I was able to split the text, and use just what's in the parenethsis for a key column match, but now I'd like to do the opposite and be left with everything but what's in the parenthesis for my output. 

Original String: Tiny Tots ELC - All Agency (CLS01803;CLS01925;CLS01807;CLS01903;CLS01928;CLS01927;CLS01842;CLS01844;CLS01902;CLS01924;CLS01859;CLS01926)

 

Desired String: Tiny Tots ELC - All Agency

 

RaeandKhali_0-1662144816558.png

 

  • Verified answer
    Kaif_Siddique Profile Picture
    2,104 Super User 2024 Season 1 on at
    Re: Remove text within parenthesis

    triggerBody()['text'] is my output from manual trigger flow --> trim(first(split(triggerBody()['text'],'('))). just replace it output in expression - trim(first(split(outputs('Create_item')?['body/Classroom'],'(')))

     

    If you like my response, please give it a Thumbs Up.
    If this helps, please Accept as solution.

     

    Regards
    Kaif

  • RaeandKhali Profile Picture
    12 on at
    Re: Remove text within parenthesis

    Sorry, I'm not sure how to do that....where would I put this: outputs('Create_item')?['body/Classroom']? 

    I've tried inputting this in the expression you provided and it is not working. Thanks for your help! 

  • Kaif_Siddique Profile Picture
    2,104 Super User 2024 Season 1 on at
    Re: Remove text within parenthesis

    Use split to extract the desired string. ---> trim(first(split(triggerBody()['text'],'(')))

    Kaif_Siddique_0-1662145930485.png

     

    If you like my response, please give it a Thumbs Up.
    If this helps, please Accept as solution.

     

    Regards
    Kaif

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1