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 Platform Community / Forums / Power Apps / Problem with jSON arra...
Power Apps
Answered

Problem with jSON array coming from Power Automate to a Canvas App

(0) ShareShare
ReportReport
Posted on by 17

I have a Power Automate flow that is returning (using a HTTP Response action) a json array with some data. 

I'm calling the flow and storing the response with in a onSelect of a button as this: 

 

 

 

 

Set(
 json,
 Table(myFlow.Run())
) 

 

 

 

 

I know that the flow is returning the correct data as I can see inspect the content when I press the button: 

 

Screenshot 2024-04-20 at 23.30.00.png

 

 

 

 

 

 

 

 

Now, the problem is that I get the right columns but no values:

 

Screenshot 2024-04-20 at 23.32.59.png

 

Categories:
I have the same question (0)
  • Sunil Kumar Pashikanti Profile Picture
    2,313 Moderator on at

    Hi @nmendes , 

     

    Use ClearCollect Instead of Set: Instead of using Set to store the response, try using ClearCollect to create a collection from the flow’s output. This can sometimes handle JSON arrays better.

    ClearCollect(
     jsonCollection,
     myFlow.Run()
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • nmendes Profile Picture
    17 on at

    Sunil,

    I tried that before and the result is the same. 

  • Verified answer
    nmendes Profile Picture
    17 on at

    Ok, the problem was that the schema generated in the HTTP Response action Power Automate was wrong. It was defining the response as an object instead of an array. 

    Here's the correct schema: 

     

    {
     "type": "array",
     "items": {
     "type": "object",
     "properties": {
     "name": {
     "type": "string"
     },
     "description": {
     "type": "string"
     }
     },
     "required": [
     "name",
     "description"
     ]
     }
    }

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard