I have a weird issue with one of my apps.
I need to collect data from a SharePoint library in the OnStart property of an app.
The function is as follows:
There are many documents in that library titled FullClaim. I want to collect all the documents that the current user has access to with that title.
It works great on a button. There are 10 files with that title for my current user, she clicks the button, the files are collected.
However if I put that function in the OnStart property of the App, nothing is collected. Any ideas why?
I even tried to add a timer, with autostart and set the function on the OnTimerEnd property, but it still did not work.
Actually I don't think any of my OnStart functions are working. I have another basic one: Set(varUserEmail,User().Email) and that one isn't working either.
Seems like a bug. Anyone else seen this before?
Are you seeing this behaviour whilst building your app in the designer? If so, have you clicked the 'Run OnStart' menu item?
Disregard my last update, my other OnStart functions are working, but not the ClearCollect.
Yes I tried it in designer and it didn't work with the Run OnStart option either.
Okay, reaaally sorry to have wasted your time, but it looks like this is due to a typo in the Flow that titles the documents. The typo was on one branch of a condition, which is why it appeared randomly for different users.