web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Update / Delete Docume...
Power Apps
Unanswered

Update / Delete Document in SP Library with Flow

(0) ShareShare
ReportReport
Posted on by 5,345 Moderator

I have a Library.

 

The Library contains existing (inheited) files, and new files are added.

 

Some of the new files will have the same name as the existing files.

 

I have a basic 'New Document' Flow, connected to a PowerApps buttons, that uploads the attachment to the Library.

Trigger: PowerApps

Create File: Site: Site; Path: Library;

File Name: PowerApps CreateFile_Name...;

File Content: Expresssion: base64...;

Respond to PowerApps: SharePointFileLink      Site/Path

 

Everything works fine, if it's a 'New' document.

 

If the document already exists in the Library and I am trying to update the existing, as formatted the Flow creates a new version with no file extension.

 

How do I add a 'Delete File' action in the Flow language above that will take the 'CQTitleUnqID' available to me from the PowerApps Gallery (and used in the Library as the documents UniqueID), to delete the existing version - and ONLY that document, and then follow through with the 'Create File' piece of the flow?

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard