Hi guys!
I am trying to duplicate events from calendar A into calendar B using the Outlook When an event is added updated or deleted (v3)-trigger. Creating an event is no issue, however I would also like the newly added event to be automatically updated and/or deleted when the original event is modified.
As far as I understand, when you create a new event, it has to receive a unique ID, and therefore, the original event and the copy will not have the same ID. With the trigger I already have information about the ID of the original event. I have stored this info in the body of the copy event to overcome this issue.
What I would then like to do is to look up the copy event where the body contains the ID of the trigger event, so to identify the copy. I need the ID of this event in order to modify or delete it.

I have tried to visualise this if it might help:

Does anyone have any clue of where and how to make this query? I could not find any syntax that would help me do this, and I'm pretty stumped.
If I am way off track and this could be sorted in another manner that is also very welcome.