I have a powerapp with a datatable made from a sharepoint list. I have two options:
Directly from datasource:
Items: 'SP_List'
Or with collection (and to update I just do a clearcollect again on a button click):
OnStart: ClearCollect(col_List, 'SP_List') Items: col_List
Now I have noticed that neither way are in sync with the Sharepoint list when an item is added in Sharepoint itself. For example, if I add a file to a library list in sharepoint, neither the datasource or the clearcollected collection will detect this difference. Staying exaclty the same. However, when I close and reopen the application, then all the changes are shown correct in the datatable.
Writing a property of an existing item does update when I clearcollect. It just does not show the new items.
Is this normal?
Many thanks!
Solved! Go to Solution.
The data source isn't a live connection to the SharePoint list (or any other data source). It is a connection that requests a set of records when you load the app or do different actions like editing and resubmitting a record. If you add a button with
Refresh(datasourcename)
it will refresh the records displayed when you press the button. That is the way its designed to work.
Hi, I have observed in edit mode sharepoint record changes may not get reflected immediately, however when you are actually running the app, by Playing it in a different instance of browser, then you will always gets updated results. The catch is you will have to refresh the page/grid on powerapps.
Hopo this helps,
Pranav
Thanks for your reply, but unfortunately it does not change anything for me.
I have to reload the application to 'refresh' the datatable.
I have no idea why it does not sync. Is this by design?
The data source isn't a live connection to the SharePoint list (or any other data source). It is a connection that requests a set of records when you load the app or do different actions like editing and resubmitting a record. If you add a button with
Refresh(datasourcename)
it will refresh the records displayed when you press the button. That is the way its designed to work.
Great, that was all there was to it. Thanks!
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
208 | |
207 | |
85 | |
58 | |
35 |
User | Count |
---|---|
334 | |
259 | |
132 | |
87 | |
60 |