Microsoft Graph API findMeetingTimes未正确返回可用空间

时间:2017-10-23 10:54:28

标签: microsoft-graph

我正在使用findMeetingTimes API,当我需要API向我推荐任何可用的房间时,它会一直返回相同的结果。即使它不可用,它也会将最近的房间归还给我。我正在进入其他房间,但它没有归还它们。 此外,我在爱尔兰,并试图利用爱尔兰时间。只有UTC可用作时间选项。有什么想法吗?

{
    "attendees": [{
            "type": "required",
            "emailAddress": {
                "name": "John Brady",
                "address": "test1@test.com"
            }
        },
        {
            "type": "required",
            "emailAddress": {
                "name": "Micheal Travers",
                "address": "test2@test.com"
            }
        }

    ],
    "locationConstraint": {
        "isRequired": "true",
        "suggestLocation": "true",
        "locations": [{
                "resolveAvailability": "true",
                "displayName": "The Rockefeller Room/THE ROCK PHASE 1",
                "locationEmailAddress": "the.rockefeller.room@test.com"
            },
            {
                "resolveAvailability": "true",
                "displayName": "The Cork Room/THE ROCK PHASE 2",
                "locationEmailAddress": "the.cork.room@test.com"
            },
            {
                "resolveAvailability": "true",
                "displayName": "The Dublin Room/THE ROCK PHASE 2",
                "locationEmailAddress": "the.dublin.room@test.com"
            }
        ]
    },
    "timeConstraint": {
        "activityDomain": "work",
        "timeslots": [{
            "start": {
                "dateTime": "2017-10-23T09:00:00",
                "timeZone": "UTC"
            },
            "end": {
                "dateTime": "2017-10-23T17:00:00",
                "timeZone": "UTC"
            }
        }]
    },
    "meetingDuration": "PT30M",
    "returnSuggestionReasons": "true",
    "MaxCandidates": "10",
    "minimumAttendeePercentage": "100"
} 

1 个答案:

答案 0 :(得分:0)

同一地点创建了2个用户和2个房间,使用Outlook365网页在一个早晨将一个用户预订到一个房间,并查询两个房间和两个用户的api。 4个查询。我预订的用户无法在当天早上预订,这是正确的,但另一个用户在同一天早上都有两个房间可供选择。显然不起作用。