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 / Need Help Removing Bra...
Power Automate
Suggested Answer

Need Help Removing Brackets, Parenthesis and Quotes Power Automate

(0) ShareShare
ReportReport
Posted on by
Hello Power Automate: I have a people picket column that keeps including brackets, parenthesis, and quotes. I added the following action to remove them, but they have not been removed:
 
replace(replace(outputs('Join'),'[',''),']','')
 
I want the inputs in brackets to just include the names
 
Categories:
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    12,980 Super User 2025 Season 2 on at
    Since you don't show how you configured the actions in your flow, I am not sure what you are doing. But, to get people out of a people picker field and have the names semicolon separated, you would do this: 
     
    1. Create an array variable with a default value of []
    2. Add an Apply to each action to the flow and point it to the people field through the dynamic content picker, choosing the option that does not contain DisplayName after it:
    3. Then add an Append to array action and enter the people picker field that does have DisplayName after it.
    4. You can then use a join expression on the variable to combine then into one string separated by the value of your choice. For example: join(variables('Approver'), '; ')
     
  • Suggested answer
    CU21101414-0 Profile Picture
    2 on at
    There are multiple ways to handle this problem, but since I have ran into needing to do similar things to cleanup characters for folder names, fields, etc... You can create an array of characters you wish to remove and then loop through them.
    1.  Create a variable for your data (in my case this was a folder name):
    2. Create your array of characters to remove:  
      Example: 
      createArray('.','@','ß','²','³','µ','´','°','^','=','(',')','&','$','§', '~','#','%','*',':','<','>','?','/','|',' ', '[', ']', '"')
    3.  Loop through your array of characters.
    4.  Use compose to replace the current character in your string.
      Example: 
      replace(variables('varFolder'), item(), '')

    5. Update your variable with the cleaned output.
     
    Once done, you should have a value clean of any unwanted characters.
     

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard