cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mfosterbdp
Level: Powered On

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
Community Support Team
Community Support Team

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

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
Super User

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

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!

mfosterbdp
Level: Powered On

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

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

Community Support Team
Community Support Team

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

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

mfosterbdp
Level: Powered On

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

Hi, Forgive my late reply.

 

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

Community Support Team
Community Support Team

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

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.
mfosterbdp
Level: Powered On

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

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
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,269)