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 / Unable to extract JSON...
Power Automate
Unanswered

Unable to extract JSON array from JSON response from api

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
Hi All, I need some help with Power Automate desktop. My flow is reading a json file. One of the property is an array. I want to extract the array and get it's length. We converted the json file to Custom object and then written the array property to a file, and noticed that all commas between the array elements have been removed.
Has someone faced this issue earlier or can help us?
 
The json looks like this:
[{ id:...
...
..
'Some ArrayName':['1':'........]
},
{ 'id':...
...
..
'Some ArrayName':['2':'........]
}
]
 
And we are trying to extract the length and contents of 'Some ArrayName'.
Categories:
I have the same question (0)
  • Verified answer
    v-litu-msft Profile Picture
    on at

    Hi @Kartik2,

     

    Could you please share an instance of the contents of 'Some ArrayName'?

    It seems like an object so I am not sure length() function could work.

     

    If you want to get content of "some arrayname", you could use expression + index to get them, for example:

    output('Parse_Json')?[0]['Some ArrayName']
    output('Parse_Json')?[1]['Some ArrayName']

    Best Regards,
    Community Support Team _ Lin Tu
    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

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard