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 / 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,865 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,865 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,865 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,865 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,865 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

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard