我正在尝试通过MS Graph创建一个事件,其中包含已在我的Outlook帐户中设置的空间。 但问题是,如果没有作为与会者添加房间,就无法预订房间。
如果我只将房间添加为位置,则不会通知并预订房间帐户中的日历。
{
"subject": "Let's go picnicking",
"body": {
"contentType": "HTML",
"content": "Does late morning work for you?"
},
"start": {
"dateTime": "2018-03-20T12:00:00",
"timeZone": "Pacific Standard Time"
},
"end": {
"dateTime": "2018-03-20T14:00:00",
"timeZone": "Pacific Standard Time"
},
"location":{
"coordinates": {"@odata.type": "microsoft.graph.outlookGeoCoordinates"},
"displayName":"RM.Papaya",
"locationType": "conferenceRoom",
"address": {"@odata.type": "microsoft.graph.physicalAddress"}
},
"locations": [
{
"displayName": "RM.Papaya",
"locationType": "conferenceRoom"
}
],
"attendees": [
{
"emailAddress": {
"address":"Matthew_Liao@Ginaworks.onmicrosoft.com",
"name": "Matthew Liao"
},
"type": "required"
}
]
}
但是,如果我还将房间添加为位置和与会者,则会通知房间帐户中的日历,但位置显示只是与房间帐户无关的文本。
{
"subject": "Let's go picnicking",
"body": {
"contentType": "HTML",
"content": "Does late morning work for you?"
},
"start": {
"dateTime": "2018-03-20T12:00:00",
"timeZone": "Pacific Standard Time"
},
"end": {
"dateTime": "2018-03-20T14:00:00",
"timeZone": "Pacific Standard Time"
},
"location":{
"displayName":"RM.Papaya",
"locationType": "conferenceRoom",
"address": {"@odata.type": "microsoft.graph.physicalAddress"}
},
"locations": [
{
"displayName": "RM.Papaya",
"locationType": "conferenceRoom"
}
],
"attendees": [
{
"emailAddress": {
"address":"Matthew_Liao@Ginaworks.onmicrosoft.com",
"name": "Matthew Liao"
},
"type": "required"
},
{
"emailAddress": {
"address":"rm.papaya@Ginaworks.onmicrosoft.com",
"name": "RM.Papaya"
},
"type": "required"
}
]
}
这是合理的还是合乎逻辑的? 或者我的代码中有任何错误? 谢谢你的帮助。
答案 0 :(得分:0)
显示问题是API的限制。这是我们希望解决的问题,但是当发生这种情况时我无法猜测。