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 in folder wi...
Power Automate
Answered

Get files in folder with filter *.doc

(0) ShareShare
ReportReport
Posted on by 31

I try to use the action 'Get files in folder' with filter *.doc and the variable produced contain files with extension .doc and files with extension .docx

The filter is *.doc not *.doc* why i get .docx files ?

I have the same question (0)
  • Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @laurorctb40 

     

    To get only .doc then you have to keep only *.doc not the *.doc* 

    * will  be a wild character that's why you are getting .doc files and .docx files as well

     

    Srini84_0-1693486668820.png

     

    MyFolder contains docx files as well

    Srini84_1-1693486706095.png

     

     

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

  • laurorctb40 Profile Picture
    31 on at

    I use only the filter *.doc and i get both types .doc and .docx.

  • laurorctb40 Profile Picture
    31 on at
    example.png
  • Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @laurorctb40 

     

    Which version of PAD are you using? It could be a bug, because I'm checking in the newer version

     

    Srini84_0-1693491047929.png

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

     

     

     

  • laurorctb40 Profile Picture
    31 on at

    laurorctb40_0-1693544661432.png

     

  • Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @laurorctb40 

     

    That's wondering, the same version I'm also trying

     

    Thanks,

    Srini

  • laurorctb40 Profile Picture
    31 on at

    Hi @Srini007
    Are you trying in W11 or W10 ?
    I tend to think that the problem is with windows. The filter behaves the same way in File Explorer.
    Can you try in File Explorer ?

  • Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @laurorctb40 

     

    Yes, I'm using Windows 11

    Yes, in File Explorer this was the same behaviour, but when you want to make it strict search in File Explorer then you need to give as "*.doc"

    Can you try in the Get files like this then 

    %'*.doc'%

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

     

  • laurorctb40 Profile Picture
    31 on at

    I try %'*.doc'% and not working.

  • Verified answer
    Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @laurorctb40 

     

    Then you need to put another few steps where It can consider .doc

    1) You get the list of docs from the Get Files from Folder action

    2) Use Create New List action

    3) Use For Each activity next and select the Files variable where the output is stored from Get Files From Folder action

    4) Inside the use If action and select the currentItem Ends with .doc

    5) Inside the IF action use Add Item to List where you can Add item CurrentItem and select List as List

     

    Srini84_0-1693579302027.png

     

    This way you can filter files which ends with .doc

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard