调用“FindMeetingTimes”API 时,结果与用户的日历不同。
请求正文:
{
"attendees": [
{
"emailAddress": {
"address": "xxx",
"name": "xxx"
},
"type": "Required"
}
],
"timeConstraint": {
"activityDomain": "Unrestricted",
"timeslots": [
{
"start": {
"dateTime": "2021-04-08T09:00:00",
"timeZone": "Eastern Standard Time"
},
"end": {
"dateTime": "2021-04-08T12:00:00",
"timeZone": "Eastern Standard Time"
}
},
{
"start": {
"dateTime": "2021-04-08T13:00:00",
"timeZone": "Eastern Standard Time"
},
"end": {
"dateTime": "2021-04-08T17:00:00",
"timeZone": "Eastern Standard Time"
}
}
]
},
"isOrganizerOptional": "true",
"meetingDuration": "PT45M",
"returnSuggestionReasons": "true",
"minimumAttendeePercentage": "100",
"maxCandidates": 48
}
该用户的日历显示“13:00-14:00”时段时间可用,但响应没有,
回复:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.meetingTimeSuggestionsResult",
"emptySuggestionsReason": "",
"meetingTimeSuggestions": [
{
"confidence": 100,
"organizerAvailability": "busy",
"suggestionReason": "Suggested because even when you are busy all attendees are available.",
"attendeeAvailability": [
{
"availability": "free",
"attendee": {
"emailAddress": {
"address": "xxx"
}
}
}
],
"locations": [],
"meetingTimeSlot": {
"start": {
"dateTime": "2021-04-08T10:30:00.0000000",
"timeZone": "Eastern Standard Time"
},
"end": {
"dateTime": "2021-04-08T11:15:00.0000000",
"timeZone": "Eastern Standard Time"
}
}
},
{
"confidence": 100,
"organizerAvailability": "free",
"suggestionReason": "Suggested because you and all attendees are available.",
"attendeeAvailability": [
{
"availability": "free",
"attendee": {
"emailAddress": {
"address": "xxx"
}
}
}
],
"locations": [],
"meetingTimeSlot": {
"start": {
"dateTime": "2021-04-08T16:00:00.0000000",
"timeZone": "Eastern Standard Time"
},
"end": {
"dateTime": "2021-04-08T16:45:00.0000000",
"timeZone": "Eastern Standard Time"
}
}
}
]
}
但奇怪的是只搜索'13:00-17:00'时间段,结果会出现,
请求正文:
{
"attendees": [
{
"emailAddress": {
"address": "xxx",
"name": "xxx"
},
"type": "Required"
}
],
"timeConstraint": {
"activityDomain": "Unrestricted",
"timeslots": [
{
"start": {
"dateTime": "2021-04-08T13:00:00",
"timeZone": "Eastern Standard Time"
},
"end": {
"dateTime": "2021-04-08T17:00:00",
"timeZone": "Eastern Standard Time"
}
}
]
},
"isOrganizerOptional": "true",
"meetingDuration": "PT45M",
"returnSuggestionReasons": "true",
"minimumAttendeePercentage": "100",
"maxCandidates": 48
}
回复:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.meetingTimeSuggestionsResult",
"emptySuggestionsReason": "",
"meetingTimeSuggestions": [
{
"confidence": 100,
"organizerAvailability": "free",
"suggestionReason": "Suggested because you and all attendees are available.",
"attendeeAvailability": [
{
"availability": "free",
"attendee": {
"emailAddress": {
"address": "xxx"
}
}
}
],
"locations": [],
"meetingTimeSlot": {
"start": {
"dateTime": "2021-04-08T13:00:00.0000000",
"timeZone": "Eastern Standard Time"
},
"end": {
"dateTime": "2021-04-08T13:45:00.0000000",
"timeZone": "Eastern Standard Time"
}
}
},
{
"confidence": 100,
"organizerAvailability": "free",
"suggestionReason": "Suggested because you and all attendees are available.",
"attendeeAvailability": [
{
"availability": "free",
"attendee": {
"emailAddress": {
"address": "xxx"
}
}
}
],
"locations": [],
"meetingTimeSlot": {
"start": {
"dateTime": "2021-04-08T16:00:00.0000000",
"timeZone": "Eastern Standard Time"
},
"end": {
"dateTime": "2021-04-08T16:45:00.0000000",
"timeZone": "Eastern Standard Time"
}
}
}
]
}
不知道为什么,谁能帮我查一下,非常感谢。