Seems to be something going on with caching lately. Anytime I delete a record from a Sharepoint DataSource then recollect, the record is still present. The only way to clear it is to View/DataSources/Refresh.
Anyone else experiencing this?
Example:
PowerApps: Editor (not tested in app yet)
Editor Version: PowerApps 3.19082.20
SessionID: aa87e252-64e4-4ca9-9b6c-583d19d55a29
Location: WestUS
Solved! Go to Solution.
Thanks for the follow up @Anonymous .
I had the issue in 2 apps. My reply above solved the the first issue. Here is how I solved the 2nd issue:
Screen 1:
Screen 2:
Flow:
The astute PowerApper can see why "the record is not being removed from the collection". Because OnVisible of Screen1, the record still exists in the SHAREPOINT_LIST.
Solution:
Hi @ericonline
just made a simple test and it worked
OnVisible - ClearCollect(colData,list)
Button click - Remove(list,First(colData));ClearCollect(colData,list)
List item got deleted and collection did not show that record
Regards,
Reza Dorrani
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
This was the issue:
Remove(SHAREPOINT_DATA_SOURCE, ThisItem, All) needed to be changed to:
Remove(SHAREPOINT_DATA_SOURCE, LookUp(colTest, ID = ThisItem.ID), All)
Hi @ericonline ,
I have tested these two formulas:
Remove(SHAREPOINT_DATA_SOURCE, ThisItem, All)
Remove(SHAREPOINT_DATA_SOURCE, LookUp(colTest, ID = ThisItem.ID), All)
and all not met the problem like your description.
Please clean your browser's cache,update it to the latest version and try again.
What's more, the network condition is also important.
Best regards,
Thanks for the follow up @Anonymous .
I had the issue in 2 apps. My reply above solved the the first issue. Here is how I solved the 2nd issue:
Screen 1:
Screen 2:
Flow:
The astute PowerApper can see why "the record is not being removed from the collection". Because OnVisible of Screen1, the record still exists in the SHAREPOINT_LIST.
Solution:
Thanks for the follow up @ericonline! This should be extremely useful for any other users who run into this issue
@Anonymous
User | Count |
---|---|
263 | |
110 | |
92 | |
55 | |
41 |