Aug 17 2023 05:18 AM
Hello,
I'm using a Power App to create and update a file in Sharepoint.
Unfortunately, I need to use Version History, but it creates 2 version history (one for Create and one for Update file).
Can I somehow bypass the first version history (the one when is created)?
Thank you!
Aug 20 2023 03:48 AM
Hi @Rares1055
Yes, you can bypass the first version history when creating a file in SharePoint using Power Apps. Here are the steps:
Now, when you create a new file using the Power App, it will not create a version history entry. Only updates to the file will be tracked in the version history.
Here is an alternative solution:
Set(BypassVersionHistory, false);
This will set the BypassVersionHistory variable to false before the file is created. This will prevent SharePoint from creating a version history entry for the new file.
I hope this helps! Let me know if you have any other questions.
Aug 20 2023 06:32 AM
Thank you for your response.
I don't know if I understood well, I'm using in Power App a button that runs a power automate flow. In that flow are the create and update file.
Is it still valid for this because I don't find those settings.