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 / Filling Collection usi...
Power Apps
Answered

Filling Collection using PowerAutomate

(0) ShareShare
ReportReport
Posted on by 11

Hello Community!

 

I'm trying to build a power app that will display data from an on-premise sql database.

I've watched several videos, and I'm close to completing this project, however, the last step is to insert the returned data into a collection, and that's where I am failing.

The power app is sending a search string to power automate.

Power automate is collecting the data.

Power app is not adding the data to the collection.

 

Flow and app pictures attached.  Appreciate any insight!

Please let me know what else I can provide.


Thanks,

 

powerapp.png
flow.png
Categories:
  • MarvinBangert Profile Picture
    1,924 Most Valuable Professional on at

    Hi @MKSchultz 

    could you please try to use the action "Respond to a PowerApp or flow" instead of the "Response" action within your flow? From the strSearchNode action I can see, you use "PowerApps" or "PowerApps (V2)" as a trigger. The "Respond to a PowerApp or flow" action will return one or multiple values to your app. Within your app, after the .Run() put a dot and you should see the output names you defined within the flow.

     

    like: .Run().status

     

    Does this help you? Otherwise please give me some more information.

    Best regards
    Marvin

    If you like this post, give a Thumbs up. If it solved your request, Mark it as a Solution to enable other users to find it.

    Blog: Cloudkumpel

  • MKSchultz Profile Picture
    11 on at

    Marvin,

    Thanks much for your response!

    I chose Respond because I'm trying to return an array, and Respond to Powerapps didn't seem to allow for that.

    I did find the monitoring tool in Power apps and it gave me the following clue:

        "info": "JSON parsing error, expected 'array' but got 'object'.",
        "issue": "This is more likely due to mismatch between metadata and actual data received. Please ensure your metadata and server response match."
      }
     
    If I'm reading this correctly, it seems PApps is expecting an array, but getting an object.  But I think I am passing it an array.  Do you think using Respond to Powerapps would correct this?
    THanks!

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @MKSchultz ,

     

    The error is telling you that the input body of the response action is of type object but not the required array type from the JSON schema. Either object or array is able to be passed to Power Apps using Response and Collect.

     

    Best regards,

  • Verified answer
    MKSchultz Profile Picture
    11 on at

    Thank you for your response.  The solution to my issue was to append a ['table1'] in my response.

    The final line looked like this:

    outputs('Execute_stored_procedure_(V2)')?['body/outputparameters']['table1']
    emphasis mine.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard