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 / Get calendar event fil...
Power Automate
Unanswered

Get calendar event filtered by Categories

(0) ShareShare
ReportReport
Posted on by 44

Hello guys, 

 

I´m trying to filter calendar events by categories and there are several values to match. I mean there are for instance 3 categories as:

 

1. Blue

2. Green

3. Red 

 

So I´m trying to create a filter to get only the events that match those categories values, this is the fun part when I´ve tried to filter just one value it works perfectly fine using the following filter :

 

categories/any(c: c eq 'Blue')

 

But when I tried to use more values to compare it doesn´t work , I tried this filter 

 

categories/any(c: c eq 'Blue' or c eq 'Red')

 

And an error message appears :

 

"The query filter contains one or more invalid nodes."

 

I tried other syntax :

 

1. (Categories eq 'Blue') or (Categories eq 'Red')

2. Categories in ('Red', 'Blue','Green')

3. (Categories in ['Red', 'Green','Blue'])

 

I don´t know what I´m missing to create the OData Filter, in the Filter Query Field I´D LIKE TO UNDERSTAND WHY IS NOT WORKING AND IF IT´S POSSIBLE TO CREATE A FILTER THERE .

 

Thanks.

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

    Hi @Sbassmed 

     

     

    Try the below

     

    categories/any(c: c eq 'Red') and categories/any(c: c eq 'Blue') and categories/any(c: c eq 'Green')

     

    Thanks

  • Sbassmed Profile Picture
    44 on at

    Hello , 

     

    When I wrote it in the Filter Query Field and  run the Flow it seems to get stuck in a loop due to Keeps running 

     

    I´ve change the AND for an OR.

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Sbassmed 

     

    Not sure why its stuck in a loop? Is that giving any errors after few minutes.

     

    Thanks

  • Sbassmed Profile Picture
    44 on at

    Hi, 

    This banner appears, after running for several minutes 

     

    "Flow run timed out. Please try again."

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Sbassmed 

     

    Could you please post a screenshot of your flow?

     

    Thanks

  • Sbassmed Profile Picture
    44 on at

    In the Calendar A action , is where the  problem occurs. 

     

     

    Sbassmed_0-1687878402526.png

    Sbassmed_1-1687878553425.png

     

     

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Sbassmed 

     

    I have tested this and it won't work with AND/OR condition.  Is per event have one category only? If it is then I could suggest a solution.

     

    Thanks

  • Sbassmed Profile Picture
    44 on at

    Hello , 

     

    Yes, each event has only one category . 

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Sbassmed 

     

    I have made a tutorial video about this. Single category filter and multiple categories.

     

    https://youtu.be/TKScN82yHCs

     

    Please watch and comment.

     

    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

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