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 / Brackets and Quotation...
Power Automate
Answered

Brackets and Quotations around Output

(1) ShareShare
ReportReport
Posted on by 107

I have a flow where I am taking lines of data and then splitting them using the index selector to extract the data I want to capture. I am successful in doing this, however, when I send the data to a spreadsheet it has brackets and quotations around the values. For example, ["FirstName"] and ["LastName"] when I just want FirstName and LastName to be outputted. 

 

I am new to power automate, so I am guessing I have the output formatted incorrectly? I imagine I could do a replace function, but feel like that seems more like a workaround vs the correct operation. 

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at

    Hey @Shaebert 

    Can you give an example how your original data looks like. Then I might be able to give you some suggestions. Like just make a test data and post it.

  • Shaebert Profile Picture
    107 on at

    Original data was from an email with comma-separated values.

     

    FirstName,LastName,Company

     

    Then changed to an Array so I could split:

     

    [
    "FirstName,LastName,Company"
    ]
     
    Then I split via comma:
     
    [
    "FirstName",
    "LastName",
    "Company"
    ]
     
    Then used this expression split(outputs('Compose')[0],',') to get the ["FirstName']
  • Verified answer
    Sundeep_Malik Profile Picture
    6,484 on at

    Hey @Shaebert 

    You could have directly used split on the csv, this will change it to an array only. Then you can extract the first name by 0 index.

    Compose 2: split(outputs('Compose'),',')

    Compose 3: outputs('Compose_2')[0]

    Compose 3: to get the first name, you can use 1 and 2 to get other values too.

    Sundeep_Malik_0-1663594812258.png

    First creating array and then using split is doing ["FirstName"], you are creating the array twice.

     

     

    I hope this helps.

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard