web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Convert text to array

(0) ShareShare
ReportReport
Posted on by 3,340

I have this text:

 

 

{
 "row": 1, 
 "3898437847541636": "201013", 
 "8402037474912132": "JS75S PRV Dwg. 72784-2-1", 
 "1083688080435076": "", 
 "3796166086289284": "2017-01-10T14:54:30Z", 
 "8299765713659780": "neisler@kelsotech.com"
}

 

 

I need to convert this to an array.  Just pasting it into a set array does not work.  Please advise!

 

 

Categories:
I have the same question (0)
  • martinav Profile Picture
    3,340 on at

    More information.

     

    I post this into an append to array.  Looks good, right?  But, when I poop this into a Compose, it has all of the carriage returns in it.  Why did the append function not error??  It should have made the text into a digestible format for an array variable, right?

     

    This looks ok, i think?

    image.png

    This is the output from the Compose, using this variable as input.

    ["{\n \"row\": 1, \n \"3898437847541636\": \"201013\", \n \"8402037474912132\": \"JS75S PRV Dwg. 72784-2-1\", \n \"1083688080435076\": \"\", \n \"3796166086289284\": \"2017-01-10T14:54:30Z\", \n \"8299765713659780\": \"neisler@company.com\"\n}{\n \"row\": 2, \n \"3898437847541636\": \"201015\", \n \"8402037474912132\": \"JS75S316 General Arrg.\", \n \"1083688080435076\": \"\", \n \"3796166086289284\": \"2017-01-10T14:54:30Z\", \n \"8299765713659780\": \"neisler@company.com\"\n}{\n \"row\": 3, \n \"3898437847541636\": \"201017\", \n \"8402037474912132\": \"JS75S316 General Arrg. w/Flue\", \n \"1083688080435076\": \"\", \n \"3796166086289284\": \"2017-01-10T14:54:30Z\", \n \"8299765713659780\": \"neisler@company.com\"\n}{\n \"row\": 4, \n \"3898437847541636\": \"201020\", \n \"8402037474912132\": \"JS75L General Arrg.\", \n \"1083688080435076\": \"\", \n \"3796166086289284\": \"2017-01-10T14:54:30Z\", \n \"8299765713659780\": \"neisler@company.com\"\n}"]

     

     

     

  • Verified answer
    v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @martinav ,

     

    The Append to Array variable action would see the text as string so the action would run successful with no issue.

     

    Why are you want to convert the text to Array?

    Do you want to get the value of the row and so on? If yes, you could take a try with the Parse JSON action:

    1.png

     

    Best regards,

    Alice       

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • martinav Profile Picture
    3,340 on at

    @v-alzhan-msft ,

     

    I do that.  What I was trying to show in the Compose is what is also happening in the ParseJSON.  Its pushing through all of the characters, and not into a proper array.  Whats the deal?

     

    The input to the ParseJSON is the output of my append array variable.  It sees it as text.  

     

    image.png

  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @martinav ,

     

    Could you please share a screenshot of the configuration of your flow?

    Could you please take a try to create the flow as my screenshot?

     

    Best regards,

    Alice       

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 598

#2
Valantis Profile Picture

Valantis 477

#3
Vish WR Profile Picture

Vish WR 370

Last 30 days Overall leaderboard