Skip to main content

Notifications

Community site session details

Community site session details

Session Id : B4FFWwsEzuHP7mAf+gwWLg
Power Automate - Building Flows
Answered

Create a flow that deletes a calendar event

Like (0) ShareShare
ReportReport
Posted on 14 Jan 2021 12:38:27 by 7

Hi, I'm using a Sharepoint add-in that manages time off, the add-in creates a Sharepoint list/calendar where the time off entries are stored, I am using a flow where it then enters these into an Outlook calendar using a "Sharepoint when an item is created" trigger and then an "Outlook create an event" action.

 

What I want to do is create a flow where it will delete the calendar entry if it is deleted from the Sharepoint list. The only availble sharepoint attrbute available to the When an item is deleted trigger is ID, so I have stored the ID in the body of each event when they are created (with no other text).

 

My current idea for a flow would be somehting like:

  1. When an Item is deleted
  2. Initialise variable
  3. Get events V4
  4. Store Get events into an array (not sure if it will store all aspect or I can stipulate just body and ID
  5. use Html to text to convert the body to text for each body part of the variable in the array
  6. use filter array to filter the array by matching the sharepoint ID attribute to the body of the event
  7. then use the output of that in delete event

Can anyone give me an example of how this could be done, I've done a lot of Googling and tried different configurations and I'm a bit stuck as I'm not proficient in Power Automate.

 

Thanks In advance for any help!

 

Rick

  • RichardHy Profile Picture
    7 on 30 Apr 2024 at 09:54:57
    Re: Create a flow that deletes a calendar event

    Hi, sorry I must   have missed this. In case it is of any use I am using a solution by a company called Ivero Welcome to IVERO.NET, it's a basic SharePoint based software and but works well enough, they also offer lifetime licenses which is unusual in these times of subscriptions! You need to make sure you are placing the ID in the body.

  • kajsiretardiran Profile Picture
    98 on 29 Apr 2024 at 12:05:50
    Re: Create a flow that deletes a calendar event

    Flow works without errors, unfortunately it does not delete anything from the calendar.


  • BS10 Profile Picture
    658 on 14 Dec 2023 at 13:15:13
    Re: Create a flow that deletes a calendar event

    Hi @v-litu-msft,

     

    I have tried this below but no content appears in the html to text conversion if I use the body property in the action, I did try using the ID but this appears to be deleting all calendar events for the user, I am testing with a test account at the moment.

     

    Could you please advise?

     

    Thanks in advance.

  • anonn Profile Picture
    10 on 01 Feb 2023 at 22:09:06
    Re: Create a flow that deletes a calendar event

    Hi Rick,

    May I please ask what you are using to track leave? Also the automation and any other useful information please?

    Thank you in advance!! 

  • molinax Profile Picture
    12 on 19 Feb 2022 at 22:35:36
    Re: Create a flow that deletes a calendar event

     

    string(triggerOutputs()?['body/ID'])

     

    @v-litu-msft: That made my day. Thanks so much.

  • RichardHy Profile Picture
    7 on 15 Jan 2021 at 17:27:35
    Re: Create a flow that deletes a calendar event

    @v-litu-msft thanks so much for the great reply/solution works perfectly!

  • Verified answer
    v-litu-msft Profile Picture
    on 15 Jan 2021 at 06:54:23
    Re: Create a flow that deletes a calendar event

    Hi @RichardHy,

     

    Please refer to the following steps to approach that:

    1.  Create a trigger when an item is deleted;

    2. Get Events;

    3. Apply to each action + HTML to text action, loop events, and convert their body to text;

    4. Create a condition action, check if the body equals to the deleted item ID (this part should convert the integer ID to a String ID):

    string(triggerOutputs()?['body/ID'])

    5. If yes, delete the event by using Event ID get from the Get events.

    Screenshot 2021-01-15 144818.jpg

     

    Screenshot 2021-01-15 144931.jpg

     

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard
Loading started