cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bakaidora
Regular Visitor

Get calendar view of events (V3) - Filter Query

Hello together,

I am going to create a flow which collect all the event from my calendar and put it into an Excel BUT filter only for those events where the "Category" of the event is "orange".

Is it possible to filter for this information?

Without filter everything works fine, however, I was not able to add this filtering criteria.

Please advice!

Thanks,

Dóra

 

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @bakaidora,

 

You could try a filter query like below. Be aware, the name of the category is case sensitive!

 

 

categories/any(c:c+eq+'Orange category')

 

 

getorangecategory_filterquery.png

View solution in original post

4 REPLIES 4
Expiscornovus
Super User
Super User

Hi @bakaidora,

 

You could try a filter query like below. Be aware, the name of the category is case sensitive!

 

 

categories/any(c:c+eq+'Orange category')

 

 

getorangecategory_filterquery.png

bakaidora
Regular Visitor

Dear @Expiscornovus 

thanks for your help, this is the perfect solution for my issue. 🙂

Have a nice day.

Dóra

bakaidora
Regular Visitor

Dear @Expiscornovus ,

still a short question to topic, if I want to extend the workflow in the future.

Is it possible to filter for 2 categories? Like for Orange and Blue one at the same time? If yes, do you have an idea how?

Thanks in advance,

Dóra

Expiscornovus
Super User
Super User

Hi @bakaidora,

 

I have had a look at the Filter Query, I haven't figured out a good query for that.


However, you could also try and Filter Array action with the expression below:

@and(contains(item()?['categories'], 'Blue category'), contains(item()?['categories'], 'Orange category'))

 

twocategories.png

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,146)