cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Brice235i
Skilled Sharer
Skilled Sharer

Flow to delete a SharePoint item when a calendar event is cancelled

Hi there, I have to create similar to explained in this post, https://powerusers.microsoft.com/t5/Building-Flows/Outlook-calendar-event-cancelled-gt-remove-SP-lis...

but seems we can no longer apply advanced condition.  .The template "Receive a Push Notification for cancelled events" doesn't work either.

When a Calendar event is created, I create a SharePoint list item to record the information obtained in the event (health screen consultation).   I want to build a flow to delete the item should the person cancel their upcoming appointment.

Does anyone know how to achieve this?

@equals(triggerBody()?['IsCancelled'], bool('True'))

 

1 ACCEPTED SOLUTION

Accepted Solutions
efialttes
Super User III
Super User III

Hi!
You mean this sequence, right?
When event is modified ->

->Condition: 'Is cancelled' equals 'true' or @equals(triggerBody()?['IsCancelled'], true)

If so, you can add the expression in advanced mode (please note true without single quotes) to tge trigger itself, on the trigger top right corner click on the 'three dots' icon to displau the menu, then settings, so you can add the condition rule there...
just follow the steps from the video
https://youtu.be/j-gP-E6CCE4

...and add the following expression
@equals(triggerBody()?['IsCancelled'], true)

Hope this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

2 REPLIES 2
efialttes
Super User III
Super User III

Hi!
You mean this sequence, right?
When event is modified ->

->Condition: 'Is cancelled' equals 'true' or @equals(triggerBody()?['IsCancelled'], true)

If so, you can add the expression in advanced mode (please note true without single quotes) to tge trigger itself, on the trigger top right corner click on the 'three dots' icon to displau the menu, then settings, so you can add the condition rule there...
just follow the steps from the video
https://youtu.be/j-gP-E6CCE4

...and add the following expression
@equals(triggerBody()?['IsCancelled'], true)

Hope this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

Thank you, I actually found another trigger that I hadn't noticed before.

"When an event is added, updated or deleted (V2)

 

I set a condition therefore: 

[Action Type] is equal to deleted for subsequent cancellation actions

[Action Type] is equal to updated for subsequent even alteration actions.

 

Works wellminAmCancelAlt.JPG

 

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,045)