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 / How to Delete Existing...
Power Apps
Unanswered

How to Delete Existing Document in Library through PowerApps New Item List Patch / Library Upload Button

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

No answer to my canundrum as yet.

 

But, I'm gonna keep swinging for the fences...my S.F. Giants are in 1st Place! 😎

 

I have a Library full of existing documents I inherited. New documents are added through PowerApps everyday.

 

I have a List that has meta data specific to the existing documents and those newly uploaded to the Library and the Members those document are associated with.

 

Both the Library and the List have a column called 'CQUnqID'.

 

I have manually pre-populated the column in both for all existing documents and created a calculation in the Library that automatically auto-populates the specific and unique 'CQUnqID' along side the doucment whenever a new document is created in the Library.

 

My issue; where a document with the 'CQUnqID' being upload from PowerApps already exists in the Library the Flow adds a 'new' document with a bad extension that is useless.

 

I need an edit to the Flow that first, based on the 'CQUnqID' of the current document being created in the Library, deletes the existing file in the Library that matches that 'CQUnqID' coming in from the upload action.

 

Then, the rest of the flow, creating the new file, can continue.

 

How do I get that new 'CQUnqID' from the Patch/List into the current action and Flow so that that existing file is deleted and a new one allowed to be created in the Library?

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard