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 / Refresh/ClearCollect d...
Power Apps
Unanswered

Refresh/ClearCollect delay with SQL Server stored procedures?

(0) ShareShare
ReportReport
Posted on by 175

Hello all,

 

Having an issue with refreshing data. 

 

I have a DatePicker app that allows a user to input certain dates and then use these to update dates in a SQL server database. Sometimes, these dates can update hundreds, if not thousands of dates so I am calling a stored procedure via Microsoft Flow from the app in order to facilitate this update. 

 

However, after I call this stored proc, I refresh the data and then re-do my ClearCollect to update the collection that the gallery is feeding from. It looks like the ClearCollect is not picking up on the changes made by the stored proc. Anyone else having these issues? I've tried to add a delay between the stored proc and the refresh via a timer, but that didn't fix the issue.

Categories:
I have the same question (0)
  • PaulD1 Profile Picture
    2,914 on at

    If you have not already, maybe try the following:

    1. Have the Flow return a value to Power Apps and set a variable to that value - this should force Power Apps to wait for the Flow to complete (return the value) before continuing with other commands. You may also need to have your Stored Proc return a value to Flow to ensure that Flow is waiting for the Stored Proc to complete before moving to the next step.
    2. Use Performance Monitor to try to determine whether your Refresh is actually firing and returning records and whether it is firing before or after your Flow has completed.
  • farhandsome Profile Picture
    175 on at

    Great idea. I was using the timer control to hard-code a value, but returning a value should force the app to follow the correct sequence.. I'll give it a try. 

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
Vish WR Profile Picture

Vish WR 633

#2
11manish Profile Picture

11manish 588

#3
Valantis Profile Picture

Valantis 457

Last 30 days Overall leaderboard