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 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:
I have the same question (0)
  • ANB Profile Picture
    7,223 Super User 2025 Season 2 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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard