cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IoanaG
Frequent Visitor

List files in folder - not working as expected

I am trying to build a flow that gets the list of files from a subfolder from one drive and to display them in a gallery in powerapps.  

In powerapps i have a dropdown with the names of the subfolders that i want to be passed to the flow. 

This is what i have so far:   

flowForListing.JPG

But i keep geting this error:

flowError.JPGflowerror2.JPG

After i consulted the documentation https://docs.microsoft.com/en-us/connectors/onedriveforbusiness/#list-files-in-folder, I realised that it has to do with the action List files in folder that doesn't work as it's mentioned in the documentation.(

cause.JPG

 

What can I do to access the subfolder?

Why in the action list in flow i cannot find the action List files in folder [DEPRECATED]?

 

1 ACCEPTED SOLUTION

Accepted Solutions
RezaDorrani
Dual Super User
Dual Super User

Hi @IoanaG 

 

List files in folder requires the id of the folder not the patch

 

Try "Find files in folder by path" action instead

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
RezaDorrani
Dual Super User
Dual Super User

Hi @IoanaG 

 

List files in folder requires the id of the folder not the patch

 

Try "Find files in folder by path" action instead

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

v-alzhan-msft
Community Support
Community Support

Hi @IoanaG ,

 

You could only use the unique identifier of the folder or choose from the Picker in the Folder field as below:

1.png 

You couldn't enter the folder path in the Folder field for listing the files in the folder.

 

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.

Thanks for your response!

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,811)