cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (3,642)