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 / PowerApps and Refreshi...
Power Apps
Unanswered

PowerApps and Refreshing of Data, Resret of Gallery and Data in SQL Azure

(1) ShareShare
ReportReport
Posted on by 349

Quite a few questions on data refreshing in PowerApps using SQL Server Azure:

 

We are using Views and Tables in our PowerApps App.

We use Views to display data only.

We use tables to write data. Two methods, to write data: Patch statements, or Flow to execute a stored procedure.

After data is patched to the Table from PowerApps or via Flow, is it always necessary to Refresh the View to access the most up-to-date data, if that data was changed within the same specific Browser session?

 

Is it a correct assumption that it is not necessary to refresh the table that the view is based upon? Is that correct, or is it also necessary to refresh the table, too?

 

Of course, we want to minimize any manual or forced refreshes, as these can be timeconsuming.

 

It seems like refreshing (at least the views) is required for the most up to date data, even if that data was patched from the same browser session.

 

In addition, it seems as though the gallery (if it’s datasource is a view that has had data changed) must also be reset.

I’ve been experimenting with the following:

 

UpdateContext({vSC: ServiceCall_Gallery.Selected.Service_Call_ID});

 

PA_Approval.Run("ASM Approve","No Equip Id", 0, ServiceCall_Gallery.Selected.Service_Call_ID, Mid(Lower(User().Email), 1,(Find("@",User().Email)-1)), Now(),0);

 

Refresh(Filter('[dbo].[vwFTM_Service_Call_All_iPad]', Service_Call_ID=vSC));

 

Refresh('[dbo].[vwFTM_Service_Call_All_iPad]');

 

Reset(ServiceCall_Gallery);

 

It would be great if: Refresh(Filter('[dbo].[vwFTM_Service_Call_All_iPad]', Service_Call_ID=vSC));

 

Would actually work, since the refresh could be contained to a specific record, or small group of records thereby improving refresh performance. Syntatically it works in PowerApps, but functionally, it does not appear to work. It seems like a full refresh of the view is required: Refresh('[dbo].[vwFTM_Service_Call_All_iPad]');

 

Does anyone have thoughts on this?

 

Additionally, Is it necessary to refresh the tables and the view when on the OnStart Event of opening the app ? Thinking that this is not necessary, that PowerApps manages this by itself.

 

And lastly, when design of either the views or tables change, is it necessary to do a manual refresh, or does PowerApps handle this? If so when does it manage changes automatically?

 

Categories:
I have the same question (0)
  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at
    From my experience I just kickoff the refresh they are fast enough it doesn’t matter much. However if you want performance I’ve always double patched. Once to the data source and again to a local collection where my view is. But I do don’t know how your data looks. Pretty sure the whole datasets get refreshed when it auto does it anyway and collections will be the fastest and auto update. But maybe someone more expert comes and chimes in but that’s how I’ve been doing mine.
  • vsslasd Profile Picture
    349 on at

    Microsoft, do you have responses to these questions ?

     

    It's helpful to know these questions for all of us.

     

    Thank you

  • Community Power Platform Member Profile Picture
    on at

    adding in @GregLi to review. 

     

    @Anonymous 

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard