cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Brice235i
Impactful Individual
Impactful Individual

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
Super User

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
Super User

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

Brice235i
Impactful Individual
Impactful Individual

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (3,287)