cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hkallen
New Member

Auto deleting file on sharepoint

Hi all,

 

I am trying to build a flow to auto delete sharepoint files which is 3 days old. However, the condition always return false even the filename contains the keyword I set. Any ideas?

 

Capture.PNGCapture2.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

Hi @hkallen ,

 

If you are using Created for comparison, please try to use the following configuration.

It is recommended to use Is folder to exclude folders.

Image reference:2.PNG

Hope it helps.

 

Best Regards,

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

View solution in original post

2 REPLIES 2
yashag2255
Dual Super User II
Dual Super User II

Hi @hkallen 

 

You might want to consider using the ODATA filters for a better and fast flow automation rather than getting a list of all the files and performaing operations on those. A perfect guide to ODATA filters is here:

https://flow.microsoft.com/en-us/blog/advanced-flow-of-the-week-filtering-with-odata/

 

You can use the startswith or substirng etc. functions for the file name and the date filter function in the same filter query. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

v-bacao-msft
Community Support
Community Support

Hi @hkallen ,

 

If you are using Created for comparison, please try to use the following configuration.

It is recommended to use Is folder to exclude folders.

Image reference:2.PNG

Hope it helps.

 

Best Regards,

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

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.

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (3,816)