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 / Fill a gallery from th...
Power Apps
Answered

Fill a gallery from the response of a Stored Procedure

(0) ShareShare
ReportReport
Posted on by 10

I'm trying to build a Gallery from the response of a Stored Procedure. I have created the flow in Power Automate:

 

JohanBoerema_0-1640629858978.png


The SP is working correct, when I check the history.

 

JohanBoerema_1-1640629934089.png

 

Also the response seems to work:

 

JohanBoerema_2-1640629980372.png

 

In the PowerApp I call this Flow, when I click an icon:

 

ClearCollect(queryResults,Gethoursperweekperuser.Run("...","2021-01-01","2021-02-02"))

 

When I now add a gallery, I can't assign any of the columns of the Response in here:

 

JohanBoerema_3-1640630103186.png

 

I just see 'Value'. What am I doing wrong in here?

 

 

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,270 Most Valuable Professional on at

    Are you binding the gallery to the collection?  If so then you'll need to set the values for the fields manually using ThisItem.fieldname.  They don't show up in the list when binding to a collection.

  • JohanBoerema Profile Picture
    10 on at

    Yes, I have set the data source of the gallery to the collection. When I then manually set my field to ThisItem.Projectcode, I get a formula error. Is that the case when you do it like this?
    Also the field stays empty, while the response in the history does show values:

     

    JohanBoerema_0-1640631203077.png

    JohanBoerema_1-1640631297435.png

     

  • Pstork1 Profile Picture
    69,270 Most Valuable Professional on at

    Can you do a View Collection and drill down into that?  It should look something like this after runing the stored procedure flow.

    image.png

  • JohanBoerema Profile Picture
    10 on at

    Looks like the issue is in the collection:

     

    JohanBoerema_0-1640636288269.png

     

  • Verified answer
    Pstork1 Profile Picture
    69,270 Most Valuable Professional on at

    When all you get back is a boolean that usually means that something about the JSON schema you have in the Response action isn't correct.  I would try doing a parse JSON on the results using that schema and make sure you see the right results inside the flow.  Then you'll have some confidence that the schema is correct.  Also make sure to remove and re-add the flow in Power Apps everytime you make a change in Power Automate.  Not doing that can result in a mismatched schema since a snapshot of the schema is taken when you add it to Power Apps.

  • JohanBoerema Profile Picture
    10 on at

    That's it thanks! Deleted it from the app and added it again, now it is working 🙂

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 Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard