Hey at all,
this problem is driving me crazy for weeks, now I'm only a few steps away from reaching my goal but the solution is not working 100%. Here's the problem.
We use PowerApps to write Data out of PowerApps into an Excel File which is stored on a company Sharepoint.
Both ways, directly updating via SubmitForm or via Power Automate Workflow is working fine.
After my Template is updated, a Power Automate Flow grabs the file path and file name of the template and saves it under a new name in the personal OneDrive Folder of the user who activated the download button. The problem here is, the user won't get the file with the actual data, only with the previous data.
The strange thing here is, I discovered that if I open the template file online via the launch command and the url, I have to wait a few seconds until the template is updated. Only if I close this updated file the workflow will create the right file on the OneDrive folder with the actual content. When I left the tab with the Template File open, the workflow fails because the file is locked for use by my profile.
How can I make sure, the newest template file is directly downloaded to a OneDrive Folder without opening and closing the template file in the Browser?
We want to avoid at all costs that other people have the opportunity to see/edit this template.
Thank you very much in advance for your feedback and answers!
Best regards, Robin