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 / 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
    Microsoft Employee 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

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 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard