cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Get Files (Properties Only) - Look in Sub Folder Only

Hi

Hope somebody can help

 

I'm trying to create a simple flow to bring back all file meta data in a Sub folder of a share point site. It seems only root folders are available

 

I have tried both the filter query and filter array to search for my "MF Test" folder but getting no luck!

Any help would be greatly appreciated!

Capture.PNGCapture1.PNGCapture2.PNG

Many thanks!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @mfosterbdp ,

 

Not all the columns are supported in Filter query, {path} is one of the not supported columns.

 

You consider using action Filter array, however, when using Filter array action, there is no need to add an Apply to each.

 

I have made a simple flow likes below for your reference.

 

In the right hand of the Filter array value field, you need to input the exact subfolder path.

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
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

6 REPLIES 6
Super User II
Super User II

The easiest way to accomplish this is to Add a condition to a Flow that utilizes the IsFolder parameter:

enter image description here

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Many thanks for your reply

 

Forgive my I'm struggling to apply the logic

 

Is Folder provides a boolean value, do I need to combine it with another condition or logic to feed it the folder "MF Test" to tigger the boolean value?

 

Many thanks!Capture.PNG

Hi @mfosterbdp ,

 

Not all the columns are supported in Filter query, {path} is one of the not supported columns.

 

You consider using action Filter array, however, when using Filter array action, there is no need to add an Apply to each.

 

I have made a simple flow likes below for your reference.

 

In the right hand of the Filter array value field, you need to input the exact subfolder path.

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
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

Hi, Forgive my late reply.

 

I'll take a look this week, looks good though and thank you for your help 🙂

Hi @mfosterbdp ,

 

Have you tested it on your side? Is it working for your scenario?

 

Please let me know if you need more help.

 

Best regards,

Mabel

 

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

Hi Mabel

 

First of all applogies it's taken a while to get back to you, I've been busy! 

 

Finally got it working, thanks to your solution! 

 

As you say the filter array was within the 'apply to each condition' and also my path was wrong 

Shared Documents/MF Test/

 

The last forward slash was missing! The little things! 

 

Thanks again!

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (9,007)