cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper III
Helper III

Delete Outlook Calendar Event when deleting Sharepoint Item

I have implemented this Flow from User @v-yuazh-msft 

 

This is working! 😃

 

Now I want to delete Outlook Event (which I generate with the flow above) - when a Sharepoint Element is deleted.

 

So I built a second following flow (see my screenshots)

But I can't combine "Outlook ID" column in SP with my "Outlook Event ID" I want to delete....so i recieve this failure...

 

How can I fix that?

Thank you so much!

 

4.JPG

2.JPG3.JPG

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @franky0711 ,

 

As @efialttes  said, when an item is deleted, we could only know limited column for the deleted item.

I suggest that you could use the Title column in your calendar list to save the outlook event’s id:

1.Save the outlook event’s id in the Title column in your calendar list, since when the item in the calendar list is deleted, we could get the Title column value from the "Name" dynamic from the trigger when an item is deleted.

2. You could create another column "outlook event title" in the calender list to save the outlook event’s subject.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

9 REPLIES 9
Super User III
Super User III

Hi

If you neeto delete an email in Outlook, you need to store the email Message Id on your Sharepoint Item (not sure which name will be shown in German) and add it as the input to your "Delete email" action block. Plese note in the example screenshot, I am deleting it without intermediate storage, but I guess you can adapt the concept to your current flow design

Teams_Email_Delete.png

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!



@efialttes Thank you but I want to delete an Outlook Event which I generated with my first flow.

Therefor I write my Outlook Event ID in my Sharepoint List. But I dont know how to make a fitting condition to delete my outlook event when it is deleted in my sharepoint list.

Ooops! Sorry for the misunderstanding...

Let me see if I understood you: the problem you have is that, event though you store the event Id on your Sharepoint item, whenever somebody deletes the event the info is not there anymore, so you cannot delete the event, right?

Thanx!



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!



What I want:

 

If someone deletes an entry in my Sharepoint list, I also want to delete the corresponding Outlook Event in my calendar. Thes calendar events are generated with the first flow, which is OK.

 

ATM the following is happend, when someone is deleting an entry in my Sharepoint list:

 

It deletes my element BEFORE i can check my condition "Outlook ID" (Sharepoint column)  = "Outlook Event ID" IF YES Delete "Outlook ID"

 

Here is my error.

 

2.JPG

Hi again!

Understood

AS explained in the following thread, "The problem I see with this scenario unfortunately is that using the "When an Item is Delete" step is VERY limited. The output from that trigger gives you no useful information on the deleted item. And while it DOES provide you the item's ID, using a follow-up 'Get Item' using that ID returns nothing"

 

The good news are... the thread also discuss a woraround, please let us know if it matches your requirements

 

https://techcommunity.microsoft.com/t5/powerapps-flow/how-to-update-list-item-in-list-2-when-list-it...

 

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!



Community Support
Community Support

Hi @franky0711 ,

 

As @efialttes  said, when an item is deleted, we could only know limited column for the deleted item.

I suggest that you could use the Title column in your calendar list to save the outlook event’s id:

1.Save the outlook event’s id in the Title column in your calendar list, since when the item in the calendar list is deleted, we could get the Title column value from the "Name" dynamic from the trigger when an item is deleted.

2. You could create another column "outlook event title" in the calender list to save the outlook event’s subject.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

Nice nice nice !

 

It is working now 🙂

 

Thank you guys so much 😁

 

Hi,

I have a same problem. i have a sharePoint list for holiday and i saved the holiday in a sharePoint calendar but when i delete the holiday from my list, my flow can not find the holiday item or id in sharePoint calendar and i resived the same error like you.

Can you tell me please how solved you that problem?

thanks a lot

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!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

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 (72,726)