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 / "File name with extens...
Power Automate
Unanswered

"File name with extension" is not able to detect files in nested folder

(0) ShareShare
ReportReport
Posted on by 2

Hi all,

 

I am currently trying to generate PDF on the fly based on the documented I uploaded to Sharepoint.

 

I am referring to this blog post https://flow.microsoft.com/en-us/blog/convert-pdf-with-microsoft-flow-nov-2018/ and I found out that This.Item.'File name with extension' is not working for files stored in subfolder. 

 

Here is a brief illustration of the folder hierarchy

Document (This is the place where I make the connection) --> General (1st level) --> Manuals(this is where my docs are stored)

 

When I try to trigger ThisItem.'File name with extension' at Document, only General is shown. I would expect it to go into Manuals and show me the files together with their extension. 

 

Any idea what I am missing at this junction?

 

Thanks,

Kevin

Categories:
  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @kevinchoo ,

     

    Could you please share a screenshot of the configuration of your flow?

    Could you please explain more details about your requirement?

     

    Best regards,

    Alice       

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

  • kevinchoo Profile Picture
    2 on at

    Hi Alice,

     

    Thanks for the response, this is what I see at powerapp:

    Powerapp.png

     
     

    So my current hierarchy is:
    Documents
    -->General

    --> test folder

    ------>doc1.docx

    ------>doc2.docx

     

    I want to have the capability to view doc1.docx and doc2.docx when I trigger ThisItem.'File name with extension ' at "Document" Level because there is the only place where I can make connection to SharePoint from PowerApps.

     

    This is an excerpt from the blog link I posted:
    Click on this label and in the Text property, change it to ThisItem.'{FilenameWithExtension}'. You should now see the files and folders from the document library listed.

     

    This imply that the FilenamewithExtension properties will be able to return all the documents available in my library; but right now what I am seeing is only the folders; not the files.

     

    In order to replicate this behaviour:

    1. At the document library of your sharepoint site, create one or two subfolders

    2. Upload a few documents into the subfolders

    3. Make a connection from powerapps to your sharepoint site

    4. Attempt to get the files by using ThisItem.'filenameWithExtension' properties.

    5. Observation: You will see that this property only return the subfolders names, instead of the documents in the subfolders.

     

    Can you advise on this?

     

    Thanks,

    Kevin

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
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard