I have a gallery, conected to a sharepoint list, which is filtered using a variable set in App.OnStart
Sometimes my gallery shows records, sometimes not.
How to reproduce
I have a sharepoint list 'Payment Requests' which has a text column called 'ApprovalStatus', I add records where some have ApprovalStatus ="Open". I generate the default three screen powerapp.
I add this to my app.onStart
Set(PaymentFilterStatus,"Open");
I then modify the galleries items property to :-
Filter('Payment Requests', ApprovalStatus = PaymentFilterStatus)
If I publish the app, then keep refreshing the app in the browser, sometimes it shows records in the gallery correctly, sometime it shows no records in the gallery. It's completely Intermittent.
Can someone explain this?
Thanks