web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Files step also re...
Power Automate
Answered

Get Files step also returns folders, not just files

(0) ShareShare
ReportReport
Posted on by 70

Hello, I'm using a 'Get files (properties only) in my flow hoping to get an array of files as per a filter query I have set up.

 

The flow runs successfully however this step also returns folders (as items) in its output, not just files. For example, if I have a "File A" inside "Folder A", then the flow may returns 2 rows (one item: "File A", second item: "Folder A") which is not what expected/desired.

 

Any thoughts? Many thanks in advance.

 

AntDim_0-1712329907481.png

 

Categories:
  • Verified answer
    Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @AntDim 

     

    The action 'Get files' returns both files & folder in the output. To get only files, you can use filter query as shown below:

    ManishSolanki_0-1712331573869.png

    FSObjType eq 0

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • AntDim Profile Picture
    70 on at

    thank you @ManishSolanki , this is exactly what I was looking for. really appreciate your swift response ☺

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard