Hi,
I am trying to add an calendar event with attendee using below outlook calendar rest API. After posting request I am able to add the event to outlook account but attendee is added as organiser name and email. This API is not adding actual requested attendee
to event.
Rest API : https://outlook.office.com/api/v2.0/me/events
here I am sending attendee as abc.xyz.1231@outlook.com but in response it is showing attendee as organiser.
Also I tried to send same request with multiple attendee but getting the same response.
Below is the request and response body :
Request Body :
{
"Subject": "Calendar Test",
"Body": {
"ContentType": "HTML",
"Content": "I think it will meet our requirements!"
},
"Start": {
"DateTime": "2016-02-08T18:00:00",
"TimeZone": "Pacific Standard Time"
},
"End": {
"DateTime": "2016-02-08T19:00:00",
"TimeZone": "Pacific Standard Time"
},
"Attendees": [
{
"EmailAddress": {
"Address": "abc.xyz.1231@outlook.com",
"Name": "Mayank"
},
"Type": "Required"
}
]
}
Response Body :
HTTP/1.1 201 Created
Transfer-Encoding: chunked
request-id: d2729ca3-3da3-47cf-b829-d9eaeb08d3f5
X-CalculatedBETarget: DM2PR0601MB0953.namprd06.prod.outlook.com
X-BackEndHttpStatus: 201
OData-Version: 4.0
X-DiagInfo: DM2PR0601MB0953
X-BEServer: DM2PR0601MB0953
X-FEServer: BY2PR03CA075
Cache-Control: private
Date: Wed, 04 May 2016 11:14:00 GMT
ETag: W/"9/iLS37JHU2Wy9xJENfCdgAACbmZcA=="
Location: https://outlook.office.com/api/v2.0/Users('0003bffd-e693-781e-0000-000000000000@84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa')/Events('AQMkADAwATNiZmYAZC1lNjkzLTc4MWUtMDACLTAwCgBGAAADvsjsE_OVy0ObpQYsuteAWQcA9-iLS37JHU2Wy9xJENfCdgAAAgENAAAA9-iLS37JHU2Wy9xJENfCdgAAAAm5IC0AAAA=')
Set-Cookie: exchangecookie=0e2ff3e4c79242d98b7ad74ac3d6e21a; expires=Thu, 04-May-2017 11:14:00 GMT; path=/; HttpOnly
Server: Microsoft-IIS/8.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
{
"Id": "AQMkADAwATNiZmYAZC1lNjkzLTc4MWUtMDACLTAwCgBGAAADvsjsE_OVy0ObpQYsuteAWQcA9-iLS37JHU2Wy9xJENfCdgAAAgENAAAA9-iLS37JHU2Wy9xJENfCdgAAAAm5IC0AAAA=",
"CreatedDateTime": "2016-05-04T04:14:00.8973264-07:00",
"LastModifiedDateTime": "2016-05-04T04:14:01.5379556-07:00",
"ChangeKey": "9/iLS37JHU2Wy9xJENfCdgAACbmZcA==",
"Categories": [],
"OriginalStartTimeZone": "Pacific Standard Time",
"OriginalEndTimeZone": "Pacific Standard Time",
"ResponseStatus": {
"Response": "Organizer",
"Time": "0001-01-01T00:00:00Z"
},
"iCalUId": "040000008200E00074C5B7101A82E00800000000D077600FF6A5D101000000000000000010000000FBD4194F454620408785060AD8D572FB",
"ReminderMinutesBeforeStart": 15,
"IsReminderOn": true,
"HasAttachments": false,
"Subject": "Calendar Test",
"Body": {
"ContentType": "HTML",
"Content": "<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n<meta content=\"text/html; charset=us-ascii\">\r\n</head>\r\n<body>\r\nI
think it will meet our requirements!\r\n</body>\r\n</html>\r\n"
},
"BodyPreview": "I think it will meet our requirements!",
"Importance": "Normal",
"Sensitivity": "Normal",
"Start": {
"DateTime": "2016-02-08T18:00:00.0000000",
"TimeZone": "Pacific Standard Time"
},
"End": {
"DateTime": "2016-02-08T19:00:00.0000000",
"TimeZone": "Pacific Standard Time"
},
"Location": {
"DisplayName": "",
"Address": {},
"Coordinates": {}
},
"IsAllDay": false,
"IsCancelled": false,
"IsOrganizer": true,
"Recurrence": null,
"ResponseRequested": true,
"SeriesMasterId": null,
"ShowAs": "Busy",
"Type": "SingleInstance",
"Attendees": [ { "Status": {
"Response": "None",
"Time": "0001-01-01T00:00:00Z"
},
"Type": "Required",
"EmailAddress": { "Name": "prajol shakya", "Address": "testdevcrm@outlook.com" } } ],
"Organizer": {
"EmailAddress": { "Name": "prajol shakya", "Address": "testdevcrm@outlook.com" } },
"WebLink": "https://outlook.live.com/owa/?ItemID=AQMkADAwATNiZmYAZC1lNjkzLTc4MWUtMDACLTAwCgBGAAADvsjsE%2BOVy0ObpQYsuteAWQcA9%2FiLS37JHU2Wy9xJENfCdgAAAgENAAAA9%2FiLS37JHU2Wy9xJENfCdgAAAAm5IC0AAAA%3D&exvsurl=1&viewmodel=ICalendarItemDetailsViewModelFactory"
}
Kindly let me know what is going wrong here. Please help out to fix this issue
Regards,
Mayank