cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vsslasd
Level 8

At what point Is it necessary to perform a Refresh(dbo) for SQL Server views or tables?

At what point Is it necessary to perform a Refresh(dbo) for SQL Server views or tables?

Does PowerApps ever do a background refresh periodically?

Does PowerApps do a Refresh(dbo) on App OnStart ?

 

Trying to understand at what point, when and how frequent a Refresh(dbo) needs to be put in code.

 

Thank you,

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: At what point Is it necessary to perform a Refresh(dbo) for SQL Server views or tables?

Hi @vsslasd,

 

For SQL Server Views, you will need to take use of the Refresh() function, for example:

Refresh('[dbo].[SQLView]')

For the SQL Table, if you would like to see the update changes, then you will also need a refresh.

 

A query for the data source would be sent when the App is first loading, you may take a look at the following blog for the details:

Performance consideration in PowerApps

Basically, any changes/Request made to the data source directly would trigger a refresh of the data source.

There is no background refresh for PowerApps, based on what I know.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: At what point Is it necessary to perform a Refresh(dbo) for SQL Server views or tables?

Hi @vsslasd,

 

For SQL Server Views, you will need to take use of the Refresh() function, for example:

Refresh('[dbo].[SQLView]')

For the SQL Table, if you would like to see the update changes, then you will also need a refresh.

 

A query for the data source would be sent when the App is first loading, you may take a look at the following blog for the details:

Performance consideration in PowerApps

Basically, any changes/Request made to the data source directly would trigger a refresh of the data source.

There is no background refresh for PowerApps, based on what I know.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,689)