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
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (2,485)