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 Moderation Statu...
Power Automate
Unanswered

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?

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @NWEASD 

     

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

     

    Thanks

  • NWEASD Profile Picture
    174 on at

    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

     

  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    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

    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.

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard