Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

OData Moderation Status stopped filtering

(0) ShareShare
ReportReport
Posted on by 174

I had a power automate that would pull from sharepoint and filter the get items using the OData__ModerationStatus eq 'Pending'.  All of a sudden this stopped working.  It is still attempting to filter the sharepoint list, however it is returning nothing.  I have changed the filter to something like Category eq null and I looked at the data being pulled from that and I see "{ModerationStatus}"="Pending".   Any thoughts on what might have changed to make this filter stop working?

  • NWEASD Profile Picture
    174 on at
    Re: OData Moderation Status stopped filtering

    Thank you.  I swear I tried this as part of the solution and it did not work.  It is working now.  Who knows but thank you.

  • Verified answer
    abm abm Profile Picture
    32,472 Most Valuable Professional on at
    Re: OData Moderation Status stopped filtering

    Hi @NWEASD 

     

    Thanks for your quick reply.

     

    Moderation Status values are:

     

    • 0 for “Approved”
    • 1 for “Rejected”
    • 2 for “Pending”

    Try OData__ModerationStatus eq '2'

     

    Let me know the results.

     

    Thanks

  • NWEASD Profile Picture
    174 on at
    Re: OData Moderation Status stopped filtering

    Sure thing.  

     

    NWEASD_0-1675797815792.png

    Here is a snip of a couple items on the list.  The Approval Status is a default column on there when items require approval.  I have found that the column in automate is called Moderation Status.

    NWEASD_1-1675797916915.png

     

    Previously I was using this as part of the Get Items filter.  When it is in the filter array it will work, but I will also miss some items I actually want on the original get items command.  

    With the help of the community, I was able to get it to work by using "OData__ModerationStatus eq 'Pending'"  That just seemed to stop working one day and not sure why.  If I try changing the OData filter to {ModerationStatus} I get an error about the column not existing.

    NWEASD_2-1675798166271.png

     

  • abm abm Profile Picture
    32,472 Most Valuable Professional on at
    Re: OData Moderation Status stopped filtering

    Hi @NWEASD 

     

    Could you post a screenshot of your SharePoint column (ModerationStatus)  setting details?

     

    Thanks

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492