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 / List files in a folder...
Power Automate
Unanswered

List files in a folder Dropbox

(0) ShareShare
ReportReport
Posted on by 8

Hello Power Platform Community,

I want to create a flow that get the metadata of the files that are stored in dropbox folders and subfolders and to put the informations in one sharepoint list, in order to get the metadata of the files from subfolders I used multiple list files in folder actions using the path from the previous action, but I get an error when the list file in a folder action use the path from the previous action and is a file not a folder.

error message: 

"The specified resource '/tpa-projects-dev/pl/6q/pc/gg/22_pl333digi_/overview.xlsx' is not a folder."

(see screenshots below)

AndreiBarta_0-1668421925111.png

AndreiBarta_1-1668421988467.png

 

 

 

Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @AndreiBarta  i think you are using file path in the folder path value that is why you are facing the error, try removing the file name from the path and see if that works, you will need to remove file name from path dynamically using following expressions:

    replace(item()?['Path'],last(split(triggerBody()?['Path'],'/')),'')

     

  • AndreiBarta Profile Picture
    8 on at

    Hello @annajhaveri ,

    This solution does not work, because I can't choose a dynamic content inside the expression, and if I write the expression i got this error when I run the flow

    AndreiBarta_0-1668671512728.pngAndreiBarta_1-1668671558321.png

     

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @AndreiBarta  did you try to use the same expression that i gave?

  • AndreiBarta Profile Picture
    8 on at

    Hi @annajhaveri ,

    Yes, and with that expression I got that error from above when I run the flow.

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @AndreiBarta  okay, so for clarity, can you please add a compose action, just above List files in folder 2 action, assign Path to that compose action. Then use outputs of compose action in the expression instead of 

    item()?['Path']
  • AndreiBarta Profile Picture
    8 on at

    Hi @annajhaveri 

    I can't choose the output into expression, because, I think the item Path has more outputs

    AndreiBarta_0-1669108261451.png

    AndreiBarta_1-1669108319460.pngAndreiBarta_2-1669108340690.png

     

     

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @AndreiBarta  List files in folder 2 action. is it inside the apply to each action?

  • AndreiBarta Profile Picture
    8 on at

    @annajhaveri  yes, because the path for the List files in folder 1 action it's a dynamic one, based on some inputs from sharepoint list

    AndreiBarta_0-1669109256349.png

     

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @AndreiBarta  i think there is a better way to do this which is just tested. Add a condition which checks whether the object is folder then get the files from that subfolder, this would make it more clean, please see screenshot below

     

    annajhaveri_0-1669109906354.png

     

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 238 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 225

#3
Haque Profile Picture

Haque 181

Last 30 days Overall leaderboard