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 Platform Community / Forums / Power Automate / Remove text within par...
Power Automate
Unanswered

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

 

Categories:
I have the same question (0)
  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    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

  • RaeandKhali Profile Picture
    12 on at

    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! 

  • Verified answer
    Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    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

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard