问题描述
在使用Microsoft 图形时,我无法设置IsOrganizerOptional
参数.这段代码有效:
In using Microsoft Graph, I am unable to set the IsOrganizerOptional
parameter. This code works:
{
"timeConstraint": {
"timeslots": [
{
"start": {
"dateTime": "2018-01-11T10:00:00",
"timeZone": "Pacific Standard Time"
},
"end": {
"dateTime": "2018-01-11T11:00:00",
"timeZone": "Pacific Standard Time"
}
}
]...}
但是,这段代码:
{
"isOrganizerOptional": true,
"timeConstraint": {
"timeslots": [
{
"start": {
"dateTime": "2018-01-11T10:00:00",
"timeZone": "Pacific Standard Time"
},
"end": {
"dateTime": "2018-01-11T11:00:00",
"timeZone": "Pacific Standard Time"
}
}
]...}
...引发以下错误:
... throws the following error:
{
"error": {
"code": "ErrorInternalServerError",
"message": "Invalid value for arg:AttendeeConstraints, value:Microsoft.Exchange.Entities.DataModel.MeetingIntelligence.AttendeeConstraints\r\nParameter name: AttendeeConstraints",
"innerError": {
"request-id": "4dfbc6ec-cc13-4216-8760-fa2171a98370",
"date": "2018-01-11T00:27:31"
}
}}
如何放置isOrganizerOptional
参数以使其起作用?
How do I place the isOrganizerOptional
parameter, to make it work?
推荐答案
在搜索没有参加者的会议时间时,管理器不是可选的.错误字词奇怪,但Invalid value for arg:AttendeeConstraints
告诉您找不到isOrganizerOptional
为 与会者为null
的时间.
When searching for a meeting time without any Attendees, the Organizer cannot be optional. While the error is oddly worded, Invalid value for arg:AttendeeConstraints
is telling you it cannot find a time when isOrganizerOptional
is true and Attendees is null
.
这篇关于无法在findMeetingTimes中设置isOrganizerOptional参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!