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 brackets and co...
Power Automate
Unanswered

Remove brackets and commas from array

(1) ShareShare
ReportReport
Posted on by 776

Hello Expert,

 

Please provide some guidance on the expression that will work here.

 

Basically, I capture something in the compose action - something like -> ["SharePoint", "Microsoft Teams"]

 

The content inside the brackets may contain one or more elements (it depends)

 

I am using this expression 

replace(replace(string(outputs('Compose_4')),'[',''),']','')

But it only replaces the bracket NOT the commas

 

AshishJaiswal_0-1672825585837.png

 

I need help to get an expression that remove bracket as well as commas, regardless the number of element inside the bracket.

 

 

Categories:
I have the same question (0)
  • VictorIvanidze Profile Picture
    13,073 on at

    Show what you want to get after handling  ["SharePoint", "Microsoft Teams"]

  • AshishJaiswal Profile Picture
    776 on at

    Hello  @VictorIvanidze 

    I added a picture in the post, No worries I will added it again 

    Used this expression - 

    replace(replace(string(outputs('Compose_4')),'[',''),']','')

     

    AshishJaiswal_0-1672827427278.png

    I need guidance to remove bracket and inverted commas both at the same time 

  • Verified answer
    Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @AshishJaiswal  Use one more replace()

    replace(replace(replace(string(outputs('Compose_4')),'[',''),']',''),'"','')

     

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • VictorIvanidze Profile Picture
    13,073 on at

    Hi @AshishJaiswal ,

    I don't see any comma. You initial problem  was "But it only replaces the bracket NOT the commas", correct?

  • AshishJaiswal Profile Picture
    776 on at

    @Hardesh15 thank you brother - this works like a charm !!

     

    Happy New Year !!!

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard