Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

How do I get a FLOW to limit one file per folder?

(0) ShareShare
ReportReport
Posted on by

I have my FLOW set up as an email comes in, save the attachment as a new file in SharePoint. I have it set as - If another file is already there "Replace"- but, the new files keep adding up in the folder. I would like it to be as a new one comes in, the old one is deleted. Thank you! I appreciate any help.

  • Verified answer
    v-litu-msft Profile Picture
    on at
    Re: How do I get a FLOW to limit one file per folder?

    Hi @Anonymous,

     

    You could add a Get files action to get all files in a folder, if the file name same with new coming file already existed in the folder, delete the file, then create the file. For example like this:

    Annotation 2020-07-16 144315.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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,537 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,908 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow