cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
joshobrien
New Member

Filter Query Event Attendee then Delete All Events

Hi, 

New to Power Automate/Flow and still getting my head around it all. 

However have an issue with one flow I can't seem to figure out. 

 

What I want to do is find all events where a particular person is an attendee, then delete/cancel all those events. However what I have currently keeps failing with the filter query for the attendee.

 

Any help to point out where I'm going wrong, or help with making what I'm trying to do work would be greatly appreciated. 

 

Power-Automate-RequiredAttendees.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
DamoBird365
Super User
Super User

Hey @joshobrien 

 

What's your error?  Is it "could not find the property names requiredAttendees"?

DamoBird365_0-1615879684822.png

In this case it would suggest the property is not available during the filter?  I also thought that potentially we could use the expression contain as presumably this person will be 1 of many potential attendees and is therefore not equal but if the field is not supported by the filter, you have to look at alternatives.

 

Having reviewed https://docs.microsoft.com/en-us/connectors/office365/#get-events-(v4) and tested the filter on Title eq 'Test Event' - which works - I believe that the above field isn't available as it isn't a string or number column.

 

So, if you were to perform the get events action on all events, you can then use a filter array action where the email is contained within the output of the get events action.

 

DamoBird365_1-1615879885774.png

 

The output of the filter array can then be used for your delete apply to each.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien

 

 

View solution in original post

1 REPLY 1
DamoBird365
Super User
Super User

Hey @joshobrien 

 

What's your error?  Is it "could not find the property names requiredAttendees"?

DamoBird365_0-1615879684822.png

In this case it would suggest the property is not available during the filter?  I also thought that potentially we could use the expression contain as presumably this person will be 1 of many potential attendees and is therefore not equal but if the field is not supported by the filter, you have to look at alternatives.

 

Having reviewed https://docs.microsoft.com/en-us/connectors/office365/#get-events-(v4) and tested the filter on Title eq 'Test Event' - which works - I believe that the above field isn't available as it isn't a string or number column.

 

So, if you were to perform the get events action on all events, you can then use a filter array action where the email is contained within the output of the get events action.

 

DamoBird365_1-1615879885774.png

 

The output of the filter array can then be used for your delete apply to each.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien

 

 

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.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,718)