cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Dual Super User III
Dual Super User III

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

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
Highlighted
Dual Super User III
Dual Super User III

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

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

Highlighted
Skilled Sharer
Skilled Sharer

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

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

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (9,837)