'microsoft graph API /calendars id is not unique
When requesting calendars, the ID returned from the calendar sometimes changes.
We saw that the name of calendar differs sometimes (agenda or Calendar) - this is also reflected in the changeKey
field, but would that mean that the calendar ID also changes?
It does not happen to all of our clients, just a few. What can cause this? What are we missing? We already use the Immutable Id headers, but these don't apply to the calendars according to the docs.
{
"id": "AAMkADgyMzdkNzAyLTVhZGEtNDg1Yi***AAAAEGAAAqQIxwV34sQLN18DH-lwsGAAAAAYeRAAA=",
"name": "Agenda",
"color": "auto",
"changeKey": "qr2mXiE5k0+ASL9waSq4XAADFAI=",
"canShare": true,
"canViewPrivateItems": true,
"canEdit": true,
"owner": {
"name": "***",
"address": "***@***.com"
}
},
Any help is appreciated!
Solution 1:[1]
IIRC, calendars are actually folders under the covers and therefore are not affected by the ImmutableId prefer header. The reason for this is that folder ids are supposed to stay the same within a given mailbox regardless of where they are moved. As such, a calendar only has one id (PR_ENTRYID) and no immutableId (PR_IMMUTABLE_ENTRYID).
That doesn't of course explain what is happening here. I am curious if it is possible that the calendar folder is getting recreated somehow which would explain why the calendar id would be changing. Can you look at the creation time of the folder to see if it is more recent than you expect it to be?
Solution 2:[2]
There is a known issue with calendar folder immutable ids where they do change that is being investigated by our engineering team. Apologies for the inconvenience here.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | David Sterling - MSFT |
Solution 2 | Jeremy Thake MSFT |