microsoftgraph / msgraph-metadata

Microsoft Graph metadata captured and used for generating client library code files.
https://graph.microsoft.com
MIT License
98 stars 27 forks source link

freeBusyStatus.workingElsewhere is suppose to be 4 but does not shows so using a getschedule-request #598

Open DenWin opened 3 months ago

DenWin commented 3 months ago

If I request the follwing using getschedule:

{        
    "schedules": [  "me@me.onmicrosoft.com" ],
    "startTime": {
        "dateTime": "2023-01-01T08:00:00Z", "timeZone": "UTC"
    },
    "endTime": {
        "dateTime": "2023-01-02T00:00:00Z", "timeZone": "UTC"
    },
    "availabilityViewInterval": 60
}

And suppose I have several appointments with free, tentative, busy, oof, and workingElsewhere I get the following response - see below. All appointments are reflected in availabilityView accordingly. All but workingElsewhere.

see the line "availabilityView" below.

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.scheduleInformation)",
    "value": [
        {
            "scheduleId": "me@me.onmicrosoft.com",
            "availabilityView": "2021222023200000",
            "scheduleItems": [
                {
                    "isPrivate": false,
                    "status": "busy",
                    "subject": "x",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T08:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T08:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "free",
                    "subject": "free",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T09:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T09:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "busy",
                    "subject": "x",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T10:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T10:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "tentative",
                    "subject": "tentative",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T11:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T11:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "busy",
                    "subject": "x",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T12:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T12:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "busy",
                    "subject": "busy",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T13:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T13:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "busy",
                    "subject": "x",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T14:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T14:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "workingElsewhere",
                    "subject": "working elsewhere",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T15:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T15:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "busy",
                    "subject": "x",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T16:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T16:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "oof",
                    "subject": "out of office",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T17:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T17:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "busy",
                    "subject": "x",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T18:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T18:30:00.0000000",
                        "timeZone": "UTC"
                    }
                }
            ],
            "workingHours": {
                "daysOfWeek": [
                    "monday",
                    "tuesday",
                    "wednesday",
                    "friday"
                ],
                "startTime": "04:00:00.0000000",
                "endTime": "20:00:00.0000000",
                "timeZone": {
                    "name": "W. Europe Standard Time"
                }
            }
        }
    ]
}