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:
  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard