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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / When an item in a libr...
Power Automate
Unanswered

When an item in a library is deleted -> delete list item

(0) ShareShare
ReportReport
Posted on by 10

Hi All,

 

I am a bit stuck: I initially wanted to build a simple flow, when a file in a document library is deleted, delete list item (because the list is just a list register of all files in the library). But I noticed to "delete item" you need to be site collection admin and I neither won't get those rights nor does the site collection admin want to set up this flow for me. So...

 

Alternative idea was to rename the list item with the flow, so for example in each column instead of the file name etc. it would just be written "delete" everywhere. Then I could manually go in the list every few days and filter/manually delete these line item. But I somehow struggle to set up that flow, as easy as it seems. It always gives me the error "item could not be found" when I try to run a flow.

 

Can anyone point me in the right direction or have any alternative ideas for a workaround for the "delete item" issue?

 

Thank you!

Annika

Categories:
I have the same question (0)
  • Verified answer
    v-litu-msft Profile Picture
    on at
    Re: When an item in a library is deleted -> delete list item

    Hi @Annnika,

     

    Could you please share a screenshot of your Flow already created?

    You could create a Flow as below:

    1. When a file is deleted;

    2. Get items with filter query to find these items which Title equals to the filename with extension of deleted file.

    3. Update Title column in SharePoint list, add the "(Deleted)" at the end of file.

    Screenshot 2021-01-20 150001.jpg

     

    Screenshot 2021-01-20 150029.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard