cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
maxiq_2k
Frequent Visitor

Problems deleting SharePoint Library files with Power Automate

Good morning community, I am having problems with a flow.
I want to make it delete files from a Sharepoint library on a scheduled basis, but when dealing with the flow I can't hit the key, the library is: Sharepoint.png
The SharePoint list is filtered so that I do not delete all the files, but when trying to delete the files with the document ID, it cannot find them, what I see is that the option of the Delete Sharepoint Files flow does not let me enter the library and therefore the filtered IDs cannot find them, how can I do?PowerAut.png
Greetings.
2 ACCEPTED SOLUTIONS

Accepted Solutions
eric-cheng
Solution Sage
Solution Sage

Hi @maxiq_2k ,

 

The flow should look like the below.

 

Screenshot_20210715-004303_Chrome.jpg

 

In Get Files, use the filter to return a single file with that ID

 

ID eq 3 

 

Screenshot_20210715-004319_Chrome.jpg

In Delete File, use the Identifier value from Get Files.

 

Screenshot_20210715-005023_Chrome.jpg

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

View solution in original post

Thank you very much, now I know the difference between an ID and an Identifier!

View solution in original post

2 REPLIES 2
eric-cheng
Solution Sage
Solution Sage

Hi @maxiq_2k ,

 

The flow should look like the below.

 

Screenshot_20210715-004303_Chrome.jpg

 

In Get Files, use the filter to return a single file with that ID

 

ID eq 3 

 

Screenshot_20210715-004319_Chrome.jpg

In Delete File, use the Identifier value from Get Files.

 

Screenshot_20210715-005023_Chrome.jpg

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Thank you very much, now I know the difference between an ID and an Identifier!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,941)