Reputation: 49884
When I use
GET https://graph.microsoft.com/v1.0/me/calendarview?startdatetime={today}&enddatetime={next-week}
I can get event subject no matter it is one-time or recruiting events.
However, when I use "delta"
GET https://graph.microsoft.com/v1.0/me/calendarview/delta?startdatetime={today}&enddatetime={next-week}
One-time events have subject while recruiting events do not have subject. Below is one of recruiting events I got:
{
"@odata.type": "#microsoft.graph.event",
"@odata.etag": "W/\"DwAAABYAAACpTc/InBsuTYwTUBb+VIb4AAB0+Esn\"",
"seriesMasterId": "AAMkADBlZTUwNTkxLWVmODgtNDVhNC1iZjhlLTdjNjA1ODZlMDI5MgBGAAAAAACUbnk-iwQZRbXMgkfKtmYhBwCpTc-InBsuTYwTUBb_VIb4AAAAAAENAACpTc-InBsuTYwTUBb_VIb4AAAUHFHiAAA=",
"type": "occurrence",
"start": {
"dateTime": "2017-09-19T05:00:00.0000000",
"timeZone": "UTC"
},
"end": {
"dateTime": "2017-09-19T06:00:00.0000000",
"timeZone": "UTC"
},
"id": "AAMkADBlZTUwNTkxLWVmODgtNDVhNC1iZjhlLTdjNjA1ODZlMDI5MgFRAAgI1P7xXviAAEYAAAAAlG55P4sEGUW1zIJHyrZmIQcAqU3PyJwbLk2ME1AW-lSG_AAAAAABDQAAqU3PyJwbLk2ME1AW-lSG_AAAFBxR4gAAEA=="
}
Is it a bug?
Upvotes: 0
Views: 109
Reputation: 17702
What I see is that using the /delta
causes me to get each occurrence in the view as a much smaller entity, but I also get the corresponding series master, which has the full details. So in this case, you would get the subject from the master.
So for entities with "type": "occurrence"
, you would look at the seriesMasterId
, which should correspond to the id
of another entity in your response. You can then pull properties like subject
and body
from that.
Upvotes: 1