web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Odata Filter on the Fo...
Power Automate
Unanswered

Odata Filter on the Folder Path using Get Files (Properties only)

(0) ShareShare
ReportReport
Posted on by

Hi, 

I have seen three or four people asking this message already, but I haven’t found a good solution yet. 

End goal steps are the following: 

  1. Flow Runs Daily
  2. Flow checks a specific folder in SharePoint
  3. Flow checks Column "Last Revised/Reviewed Date" 
  4. If Date in said column was one year ago then flow pulls that item and adds it to list of pulled items
  5. HTML Table is made using all of the pulled items
  6. Email is sent containing the HTML table showing all outdated items. 

Here is what I have now:

That goes down to this:

Obviously this just grabs every single item in the entire library rather then just a specific folder. 

I have found that this works to get the array down into just a specific folder: 

However, the output of that is just a Body and an Item, so I cant build my HTML table like I was with just that info. 

 

So I guess he question is can I somehow filter the original query by folder, if not is there a way to take my filtered array and pull out the same data I have in the HTML table so I can still format it the same way I do now? 

 

Any help or links are appreciated. 

 

Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    How is your current situation, has solved your problem? if not, please refer to the following method.

     

    The way you filter the files in the specified folder is correct. When configuring the value of HTML table, you need to use Expression.

    Like: item()['ColumnName'].  if there is a space in the middle of the field name, you may need to replace the space with “_x0020_”.

    Image reference:

    10.PNG

     

    You could also consider using another method to configure Flow.

    • Use array variables to store the column that needs to be displayed in HTML table.
    • Configure Get files action to get all the files in the specified library.
    • Iterate through Value of the previous step, use condition to filter the matching files, and append relevant information to the array variable.
    • Use the variable as the resource for HTML table. This configuration avoids the hassle of using Expression and avoids editing errors.

    Image reference:11.PNG

    Apply to each configuration details:

    12.PNG

    Please take a try.

     

    Best Regards,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard