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 and not c...
Power Automate
Answered

Odata filter and not contains syntax

(0) ShareShare
ReportReport
Posted on by

I'm using the Get events (V4) connector (see screenshot below).  What's the correct syntax for the odata filter box?  This doesn't work:

 

and(
not contains(Subject, 'ABC'),
not contains(Subject, 'XYZ'))
)

 

DanHardy_0-1716933444854.png

 

Thanks.

 

 

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

    Hi @DanHardy ,

    OData filtering in the Filter Array does not use the contains syntax. It is recommended that you use the Filter array to filter the desired events.

    The following are the function links supported by OData filtering:

    OData Filter query in SharePoint Get items in Flow (sharepains.com)

     

    Best Regards,

    Sunshine Gu

     

  • DanHardy Profile Picture
    on at

    If anyone else reads this, the output of the Filter Array Action is different than "Get Events" Action.  To get it to work, I needed to manually use the expression builder to specify the input of the next action to use outputs('Filter_array')['body'] instead of the body output provided by Filter Array.  It seems that whenever I used the body output, it defaulted back to: outputs('Filter_array')['body/value']' instead of just outputs('Filter_array')['body']' which kept giving me an error message.

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard