web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Update SharePoint list...
Power Automate
Answered

Update SharePoint list when Calendar Event is updated/modified or deleted

(1) ShareShare
ReportReport
Posted on by 266

First and foremost, creating a flow is very new to me, so if it's not too much to ask, providing detailed steps or visuals would be greatly appreciated.

I have successfully created a flow where, whenever a new event is created in Outlook calendar it's added to a SharePoint list.  I'm now trying to create one that will update the list if the event is updated or deleted.  Pictures of the flow I created are below along with the error I receive.  Please note, I'm not even sure if the process/steps are correct.  The error I receive is:

 

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each_2')?['EventID']' is of type 'String'. The result must be a valid array.  

 

Mike44_0-1617280195022.png

Mike44_1-1617280246251.png

Mike44_3-1617280330682.png

 

 

 

 

Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Mike44  can you please let me know why you have apply to each action configure with Event ID? 

  • Mike44 Profile Picture
    266 on at

    My logic, though it could be completely wrong, was that I needed to collect the Event ID of the calendar event that was updated/modified or deleted and then apply the update to the SharePoint list where the Event ID's matched.  Again, my steps or the process outlined could be completely wrong.  This is all very new to me.

  • Verified answer
    annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Mike44 okay, in that case you have an extra Apply to each  action which uses EventID, remove that apply to each. The update item action should be added directly under "apply to each 2" action. Also when you are updating the SharePoint items in update item action, shouldnt you be using dynamic content from trigger for column values?

  • madelinelabouf Profile Picture
    28 on at

    @Mike44 Was this solution correct? I'm trying to do the same thing. I've figured out how to add new events on Outlook and have them go to SharePoint, but I'm struggling with the updating and deleting aspect. 

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @madelinelabouf  can you please elaborate what issue are you facing on updating and deleting?

  • Mike44 Profile Picture
    266 on at

    I honestly don't remember, but I believe it was the correct solution.  I'm no longer using this flow, so I'm not able to go and check.

  • madelinelabouf Profile Picture
    28 on at

    No worries, thank you!

  • madelinelabouf Profile Picture
    28 on at

    The first attachment is the flow that I have to create items, it is working. 

     

    The second attachment is the flow that I've made based on what Mike44 posted. I intend for it to modify or delete calendar events in SharePoint when an event is modified/deleted in Outlook. For this flow I am getting "failed" when it runs. 

     

    Thank you!

     

  • madelinelabouf Profile Picture
    28 on at

    Update: I think these attachments are close to what I'm supposed to have for this situation. However, I still seem to be missing something as the run is still failing. 

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard