Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

sharepoint move only files, not folders

(0) ShareShare
ReportReport
Posted on by 780

I'm sure I'm missing something obvious here.

 

I have a library with a bunch of folders, probably one file in each folder. I'm trying to build a manual flow that pulls all files from each of these folders and moves to one single folder. 

 

Right now, I hava a Get Files(properties only) and then a Move File action. The issue is it's moving the folders as well. How can I specify only the files should be moved?

 

  • notj Profile Picture
    780 on at
    Re: sharepoint move only files, not folders

    Thanks, that worked. I was able to complete this with a condition checking the IsFolder property, but your solution is a lot better.

  • Verified answer
    Ellis Karim Profile Picture
    11,111 Super User 2025 Season 1 on at
    Re: sharepoint move only files, not folders

    Hi @notj ,

     

    Try the following in the Filter Query:

    Snag_1231342.png

     

    FSObjType eq 0

     

    which should return only files.

     

    For more info, please see How get only Files (and exclude Folders) from a SharePoint Document Library using Power Automate


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1