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 / Issue with Updating Ev...
Power Automate
Answered

Issue with Updating Events in Power Automate: "Event ID Not Found"

(1) ShareShare
ReportReport
Posted on by 2

I'm working on a flow in Microsoft Power Automate that needs to update events in a calendar. The flow is designed to respond to changes in an event in one calendar and replicate these changes in a second calendar. However, I'm encountering a recurring problem when trying to update or delete events in the target calendar using the event ID.

Problem Description:
When an event is modified, my flow should find the corresponding event in the second calendar and update it. To do this, I attempt to use the original event's ID to find the corresponding event in the second calendar. However, when I pass this ID to the "Update event" or "Delete event" action, I receive an error stating "The specified object was not found in the store."

Flow Configuration:

  • Trigger: When an event in Calendar A is updated.
  • Action: Attempt to update the corresponding event in Calendar B using an ID that I assume is the original event's ID

  •  

Specific Issue:
The event ID I am passing seems not to be recognized by the destination calendar, even though it is the ID I obtain from the original event's dynamic field. This leads me to receive the "object not found" error.

Troubleshooting Attempts:

  • I have verified that the event ID is correctly captured from the trigger
  • I have tried logging the ID to ensure it is correctly passed to the update action

It appears there might be a misalignment or an issue in how event IDs are handled between the two calendars, or I might not fully understand how they should be mapped.

Question:
Has anyone faced a similar issue or have suggestions on how I can ensure the event ID is correctly recognized by the second calendar? Could there be a step I am overlooking or a specific configuration that needs to be implemented?

Any help or suggestions would be greatly appreciated!

Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,392 Super User 2025 Season 2 on at
     
    This is alot of information so feel free to ask questions but do them inline and read it a couple of times :-)
     
    I would expect the event IDs to be different since its a different calendar. So you need to use the Calendars Event Unique id
     
    So when you do a Create Event (V4), it returns back a GraphCalendarEventClientReceive, now you don't per se care about the whole thing, but in there
    is the Id field which is the actual Id of the newly created event.
     
    You need to have a mapping table, between the Unique ID of the event in calendar1 to map against the event in calendar2
     
    So imagine you had
     
    EventMappingList (SharePoint)
     
    Calender1Id                                                                   Calendar2Id
    Here you store the uni1erid for calender1 event         here you store the unique id for calendar2 event
     
    Create
    For create, you just need the Id for the incoming Calendar1 event, then create event 2, then use the event id for Calendars 1 and 2 for their respective new events, to create a new row in the EventMappingList which gives a pointer to each others aligned records/events
     
    Update/Delete
     
    And anytime you need to do an update or delete for an event in Calendar1, you have to grab the Unique Id for Calendar2 from your EventMappingList list, that represents the id for calendar2id
     
    Now that you have that, you can easily make changes.
     
    Create incoming event
    So.. when you create an event, and assuming you did NOT change the name of the default header for the Create Event V4, to get the new Calendar2 unique id you do this
    body('Create_Event_v4')?['value']?['Id']
    Now you use that to in the Action Get event (V3) to grab the event you created in Calendar2
     
    So your steps in your ... original flow should look like this (with some thoughts to think about)
     
    1. Add Trigger "When an event is added, updated or deleted (v3)
    2. Add a parse JSON and use the example from a previously triggered Flow by going to run details and copying it out
     
    3. Add a Switch to check if it's a Create/Add or Update or Delete, this switch would be based on the Action Type property which would say, added, updated or deleted as its value
     
    This way you know what to do in your calendar2
     
    Using the Switch on the Action Type
     
    In the added case
    --use the triggerBody to get the If of the incoming event. In the Dynamic properties, its called just Body or body but with the parse json you should get it easy
    --use the create event to create a new event into your new calendar
    --use a parse json again to grab this creates id just like I explained above
    --create a row in the SharePoint list setting Calendar1Id to the id of the incoming message, and Calendar2 to the id of the created event in the previous step
     
    in the updated case
    Use the triggerBody to get the Id of the incoming event.
    --add another parse json in this Case where the input is the output of the body property from the trigger. Use the trigger output from a previous run as the Example schema input
    --In the Dynamic property called body, use that as an input the parse json
    --add your sample as explained before and here.
     
    Now use Get Items from SharePoint, to list all rows in the Mapping Table, but filter based on the Calendar1Id field.
    use an apply to each (or For each depending on the UI you are using) with the input/from being the Get Items previous step
    inside the loop (which should only happen 1 time), you can grab the calendar2Id value directly
     
    Now add your update event action to modify it however the calendar 1 event was
     
    --Deleted will act just like updated except you use the Delete Event action
     
    If this answers your question and I know its a lot, please mark as so and feel free to ask questions.
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    You can create your own custom event key and add it the subject or some other metadata field.
    You can then retrieve the event in the other calendar using this key and update the event.

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard