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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

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!

Users online (37,766)