We are trying to understand the Refresh vs. the ClearCollect.
Is a Refresh required prior to issuing a ClearCollect, or does the ClearCollect automatically execute a Refresh prior to returning the data from the views with the most up-to-date data ?
For example:
Do I need to execute the following to get the most up-to-date data from SQL Server:
Refresh('[dbo].[vwView]')
ClearCollect(viewcollection, '[dbo].[vwView]')
or does the following command:
ClearCollect(viewcollection, '[dbo].[vwView]')
execute the refresh when it performs the clearcollect getting the most up-to-date data?
Thank you