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
Community Champion
Community Champion

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
Community Champion
Community Champion

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

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

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

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (2,799)