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 / Urgent - Using SQL flo...
Power Apps
Unanswered

Urgent - Using SQL flow response in a gallery

(0) ShareShare
ReportReport
Posted on by 42

Hi, 

 

I have created a flow which, based on input from my canvas app, executes a SQL stored procedure. This returns several records from a really large database, and I am using the Response action to pass "ResultSets" into my app, which I then want to populate a Gallery. 

 

This is what I am currently doing...

 

Screen OnVisible

 

ClearCollect(colSalesLT, FirstN('SalesLT.Customer', 100))

 

Gallery's Items

 

If(IsEmpty(colSalesLT), FirstN('SalesLT.Customer', 100), colSalesLT)

 

I have a button which takes the content of a text input field, and runs the flow. It's OnSelect is:

 

UpdateContext({varLoading: true});
UpdateContext({varFilter: TextInput1.Text});
ClearCollect(
 colSalesLT,
 Getpatients.Run(First(Split(Trim(varFilter), " ")).Value, Last(Split(Trim(varFilter), " ")).Value)
);
UpdateContext({varLoading: false});

 

The flow runs fine, but the gallery is empty. Why could this be?

 

Thanks

LM.

 

 

Categories:
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @LostMary , The Screen OnVisible and Gallery's Items are same, So I dont understand the reason of using that because more or less both are same.

     

    Can you confirm that the Response action that you are using in Flow is getting the output with proper scheme ? 

     

    Thanks,

    ANB

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 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard