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 / Get Files Filter Query...
Power Automate
Answered

Get Files Filter Query - Library on 'Approved' Documents

(0) ShareShare
ReportReport
Posted on by 6

Hi All,

First of many posts !!

Ok trying to apply a Filter Query on a Get Files function/step (i think that's what its called!) and i only want it to return amongst other things the 'Approved'  or published documents or those docs notated as Approved within the Approval Status Column.

How is this achieved...it certainly doesn't seem to recognize the 'Approval Status' Column name like it would for a custom column

Thanks 

Categories:
I have the same question (0)
  • Verified answer
    ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @James88 

    If you are using the Approval Status column that is automatically added by SharePoint when you require approval, see my example below.  IMPORTANT:  there are two underscores between OData and ModerationStaatus.

     

    image.png

     

     

  • James88 Profile Picture
    6 on at

    Thanks Scott that works perfectly!

     

    What's the best way of identifying Column Names such as these, i can see the address when i edit a custom column but the Approval Status isnt shown in this way.

     

    Thanks Again! 😁

  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @James88 

    In a SharePoint filter query, you must refer to columns by their internal names rather than their display names.  The easiest way to figure out how to a column in the filter is to click on the output of the get items action after a run.  Then search for your column name - refer to the column in your filter exactly the same way that is shows in the output.  The names used in the query are case sensitive.  The approval column is special - you just need to know that it is moderation status...

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 612

#2
Valantis Profile Picture

Valantis 344

#3
11manish Profile Picture

11manish 326

Last 30 days Overall leaderboard