How to Upload a New SharePoint File Version from Power Apps
Question details
The user needs to know how uploading a file with the same name via Power Apps affects existing SharePoint files, and how to properly handle versioning or preserve separate duplicate copies.

- Product
- Power Apps and SharePoint
- Device & OS
- not provided
- Scenario
- Uploading a document via Power Apps to a SharePoint library where a file with the exact same name already exists.
- Observed behavior
- Uploading the file updates the existing SharePoint document and generates a new version if versioning is active, rather than automatically saving a separate copy of the file.
Ensure that versioning is enabled in your SharePoint document library settings so that your file updates are recorded correctly without losing previous data.
Update the Existing File to Create a New Version
Use this default method when you want to maintain a single file history and update the existing SharePoint document with new changes.
Because the Power Apps upload action synchronizes directly with SharePoint Online, uploading a file with an identical name automatically triggers SharePoint's versioning mechanism. This keeps your library clean and maintains a clear history of document changes without cluttering folders with duplicates.
Navigate to your SharePoint document library, click the Settings gear icon, select 'Library settings', and ensure 'Create major versions' is enabled under 'Versioning settings'.
In your Power Apps interface, trigger the upload action using a file that has the exact same name as the existing file in your SharePoint library.
Go to the SharePoint library, click the ellipsis (...) next to the uploaded file, and select 'Version history' to confirm the new version was successfully created.

Preserve a Separate Copy of the Uploaded File
Use this approach if you need to keep both the original file and the newly uploaded file without overwriting the existing document.
View and Edit Your SharePoint Documents with WPS Office
Whether you are downloading old versions from SharePoint or reviewing newly uploaded files from Power Apps, you need a reliable office suite. WPS Office is a highly compatible, lightweight, and free alternative to Microsoft Office that lets you view, edit, and save your documents with ease.
- 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install WPS Office: Run the downloaded installer and follow the on-screen prompts to complete the setup process in minutes.
- 3. Open Your Documents: Launch WPS Office and open the files downloaded from your SharePoint library to start editing immediately.

Frequently Asked Questions
Why did Power Apps overwrite my existing SharePoint file?
Power Apps synchronizes directly with SharePoint Online. If you upload a file with the exact same name as an existing file, SharePoint treats it as an update. It overwrites the current file and creates a new version if versioning is enabled.
How do I check if versioning is enabled in my SharePoint library?
Navigate to your SharePoint document library, click the Settings gear icon, and select 'Library settings'. Click on 'Versioning settings' to view or change whether major and minor versions are being tracked for your files.
Can I automatically rename files in Power Apps to avoid overwriting?
Yes, you can configure your Power Apps formula or use a connected Power Automate flow to automatically append dynamic data, such as the current date and time, to the file name before it is uploaded to SharePoint.




