Исходное начало API Graph не отправлено в исключении повторяющихся событий - PullRequest
0 голосов
/ 07 января 2020

Я создал повторяющееся собрание в Outlook, а затем изменил одно из вхождений на другое время. При извлечении вхождений через API «Список экземпляров событий» измененный вхождение имеет тип «исключение», однако атрибут «originalStart» отсутствует, даже если он является частью спецификации объекта события. При отсутствии исходного Start, как я могу найти исключение в моих существующих сохраненных экземплярах в моей локальной БД. Не существует уникального атрибута, указанного API. Ниже приводится ответ на "Instances Список событий" API

1002 * URL запроса https://graph.microsoft.com/v1.0/users/superman@faseas.com / События / AAMkADhmNGRiYWQzLTE0NWEtNDk3NS1iNjlmLTIwMDI4NGIyYjBlNQBGAAAAAAAk9cOyr3ugSI0ZKNosjDWfBwAdzlj2D5KsSIP3bvBaev64AAAAAAENAAAdzlj2D5KsSIP3bvBaev64AAABD3yXAAA = / экземпляры startDateTime = 2020-01-07T00: 00: 00,0000000 & endDateTime = 2020-01 -10T22: 00: 00.0000000

Тело ответа

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('superman%40faseas.com')/events('AAMkADhmNGRiYWQzLTE0NWEtNDk3NS1iNjlmLTIwMDI4NGIyYjBlNQBGAAAAAAAk9cOyr3ugSI0ZKNosjDWfBwAdzlj2D5KsSIP3bvBaev64AAAAAAENAAAdzlj2D5KsSIP3bvBaev64AAABD3yXAAA%3D')/instances",
    "value": [
        {
            "@odata.etag": "W/\"Hc5Y9g+SrEiD927wWnr+uAAAAtkl3Q==\"",
            "id": "AAMkADhmNGRiYWQzLTE0NWEtNDk3NS1iNjlmLTIwMDI4NGIyYjBlNQFRAAgI15PNtGBAAEYAAAAAJPXDsq97oEiNGSjaLIw1nwcAHc5Y9g_SrEiD927wWnr_uAAAAAABDQAAHc5Y9g_SrEiD927wWnr_uAAAAQ98lwAAEA==",
            "createdDateTime": "2020-01-06T15:13:43.9299868Z",
            "lastModifiedDateTime": "2020-01-07T03:29:18.1906368Z",
            "changeKey": "Hc5Y9g+SrEiD927wWnr+uAAAAtkl3Q==",
            "categories": [],
            "originalStartTimeZone": "India Standard Time",
            "originalEndTimeZone": "India Standard Time",
            "iCalUId": "040000008200E00074C5B7101A82E00807E40108704E7379CCC4D501000000000000000010000000421DF698CC5210429047933E3603D06C",
            "reminderMinutesBeforeStart": 15,
            "isReminderOn": true,
            "hasAttachments": false,
            "subject": "Bla Bla Bla",
            "bodyPreview": "",
            "importance": "normal",
            "sensitivity": "normal",
            "isAllDay": false,
            "isCancelled": false,
            "isOrganizer": true,
            "responseRequested": true,
            "seriesMasterId": "AAMkADhmNGRiYWQzLTE0NWEtNDk3NS1iNjlmLTIwMDI4NGIyYjBlNQBGAAAAAAAk9cOyr3ugSI0ZKNosjDWfBwAdzlj2D5KsSIP3bvBaev64AAAAAAENAAAdzlj2D5KsSIP3bvBaev64AAABD3yXAAA=",
            "showAs": "busy",
            "type": "exception",
            "webLink": "https://outlook.office365.com/owa/?itemid=AAMkADhmNGRiYWQzLTE0NWEtNDk3NS1iNjlmLTIwMDI4NGIyYjBlNQFRAAgI15PNtGBAAEYAAAAAJPXDsq97oEiNGSjaLIw1nwcAHc5Y9g%2BSrEiD927wWnr%2BuAAAAAABDQAAHc5Y9g%2BSrEiD927wWnr%2BuAAAAQ98lwAAEA%3D%3D&exvsurl=1&path=/calendar/item",
            "onlineMeetingUrl": null,
            "recurrence": null,
            "responseStatus": {
                "response": "organizer",
                "time": "0001-01-01T00:00:00Z"
            },
            "body": {
                "contentType": "html",
                "content": "<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n<meta content=\"text/html; charset=us-ascii\">\r\n<meta name=\"Generator\" content=\"Microsoft Word 15 (filtered medium)\">\r\n<style>\r\n<!--\r\n@font-face\r\n\t{font-family:\"Cambria Math\"}\r\n@font-face\r\n\t{font-family:Calibri}\r\np.MsoNormal, li.MsoNormal, div.MsoNormal\r\n\t{margin:0in;\r\n\tmargin-bottom:.0001pt;\r\n\tfont-size:11.0pt;\r\n\tfont-family:\"Calibri\",sans-serif}\r\na:link, span.MsoHyperlink\r\n\t{color:#0563C1;\r\n\ttext-decoration:underline}\r\na:visited, span.MsoHyperlinkFollowed\r\n\t{color:#954F72;\r\n\ttext-decoration:underline}\r\np.msonormal0, li.msonormal0, div.msonormal0\r\n\t{margin-right:0in;\r\n\tmargin-left:0in;\r\n\tfont-size:11.0pt;\r\n\tfont-family:\"Calibri\",sans-serif}\r\nspan.EmailStyle18\r\n\t{font-family:\"Calibri\",sans-serif;\r\n\tcolor:windowtext}\r\n.MsoChpDefault\r\n\t{font-size:10.0pt}\r\n@page WordSection1\r\n\t{margin:1.0in 1.0in 1.0in 1.0in}\r\ndiv.WordSection1\r\n\t{}\r\n-->\r\n</style>\r\n</head>\r\n<body lang=\"EN-US\" link=\"#0563C1\" vlink=\"#954F72\">\r\n<div class=\"WordSection1\">\r\n<p class=\"MsoNormal\">&nbsp;</p>\r\n</div>\r\n</body>\r\n</html>\r\n"
            },
            "start": {
                "dateTime": "2020-01-08T05:00:00.0000000",
                "timeZone": "UTC"
            },
            "end": {
                "dateTime": "2020-01-08T05:30:00.0000000",
                "timeZone": "UTC"
            },
            "location": {
                "displayName": "eroom1",
                "locationType": "default",
                "uniqueId": "eroom1",
                "uniqueIdType": "private"
            },
            "locations": [
                {
                    "displayName": "eroom1",
                    "locationUri": "eroom1@faseas.com",
                    "locationType": "conferenceRoom",
                    "uniqueId": "d82dd7d7-84be-409c-b0ac-3270fab9cae1",
                    "uniqueIdType": "locationStore",
                    "address": {},
                    "coordinates": {}
                }
            ],
            "attendees": [
                {
                    "type": "required",
                    "status": {
                        "response": "none",
                        "time": "0001-01-01T00:00:00Z"
                    },
                    "emailAddress": {
                        "name": "Clark Kent",
                        "address": "superman@faseas.com"
                    }
                },
                {
                    "type": "resource",
                    "status": {
                        "response": "accepted",
                        "time": "2020-01-06T15:13:44.7905052Z"
                    },
                    "emailAddress": {
                        "name": "eroom1",
                        "address": "eroom1@faseas.com"
                    }
                }
            ],
            "organizer": {
                "emailAddress": {
                    "name": "Clark Kent",
                    "address": "superman@faseas.com"
                }
            }
        },
        {
            "@odata.etag": "W/\"Hc5Y9g+SrEiD927wWnr+uAAAAtkl3Q==\"",
            "id": "AAMkADhmNGRiYWQzLTE0NWEtNDk3NS1iNjlmLTIwMDI4NGIyYjBlNQFRAAgI15MEifaAAEYAAAAAJPXDsq97oEiNGSjaLIw1nwcAHc5Y9g_SrEiD927wWnr_uAAAAAABDQAAHc5Y9g_SrEiD927wWnr_uAAAAQ98lwAAEA==",
            "createdDateTime": "2020-01-06T14:34:19.5208193Z",
            "lastModifiedDateTime": "2020-01-07T08:19:21.020372Z",
            "changeKey": "Hc5Y9g+SrEiD927wWnr+uAAAAtkl3Q==",
            "categories": [],
            "originalStartTimeZone": "India Standard Time",
            "originalEndTimeZone": "India Standard Time",
            "iCalUId": "040000008200E00074C5B7101A82E00807E40107704E7379CCC4D501000000000000000010000000421DF698CC5210429047933E3603D06C",
            "reminderMinutesBeforeStart": 15,
            "isReminderOn": true,
            "hasAttachments": false,
            "subject": "Bla Bla Bla",
            "bodyPreview": "",
            "importance": "normal",
            "sensitivity": "normal",
            "isAllDay": false,
            "isCancelled": false,
            "isOrganizer": true,
            "responseRequested": true,
            "seriesMasterId": "AAMkADhmNGRiYWQzLTE0NWEtNDk3NS1iNjlmLTIwMDI4NGIyYjBlNQBGAAAAAAAk9cOyr3ugSI0ZKNosjDWfBwAdzlj2D5KsSIP3bvBaev64AAAAAAENAAAdzlj2D5KsSIP3bvBaev64AAABD3yXAAA=",
            "showAs": "busy",
            "type": "occurrence",
            "webLink": "https://outlook.office365.com/owa/?itemid=AAMkADhmNGRiYWQzLTE0NWEtNDk3NS1iNjlmLTIwMDI4NGIyYjBlNQFRAAgI15MEifaAAEYAAAAAJPXDsq97oEiNGSjaLIw1nwcAHc5Y9g%2BSrEiD927wWnr%2BuAAAAAABDQAAHc5Y9g%2BSrEiD927wWnr%2BuAAAAQ98lwAAEA%3D%3D&exvsurl=1&path=/calendar/item",
            "onlineMeetingUrl": null,
            "recurrence": null,
            "responseStatus": {
                "response": "organizer",
                "time": "0001-01-01T00:00:00Z"
            },
            "body": {
                "contentType": "html",
                "content": "<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n<meta content=\"text/html; charset=us-ascii\">\r\n<meta name=\"Generator\" content=\"Microsoft Word 15 (filtered medium)\">\r\n<style>\r\n<!--\r\n@font-face\r\n\t{font-family:\"Cambria Math\"}\r\n@font-face\r\n\t{font-family:Calibri}\r\np.MsoNormal, li.MsoNormal, div.MsoNormal\r\n\t{margin:0in;\r\n\tmargin-bottom:.0001pt;\r\n\tfont-size:11.0pt;\r\n\tfont-family:\"Calibri\",sans-serif}\r\na:link, span.MsoHyperlink\r\n\t{color:#0563C1;\r\n\ttext-decoration:underline}\r\na:visited, span.MsoHyperlinkFollowed\r\n\t{color:#954F72;\r\n\ttext-decoration:underline}\r\np.msonormal0, li.msonormal0, div.msonormal0\r\n\t{margin-right:0in;\r\n\tmargin-left:0in;\r\n\tfont-size:11.0pt;\r\n\tfont-family:\"Calibri\",sans-serif}\r\nspan.EmailStyle18\r\n\t{font-family:\"Calibri\",sans-serif;\r\n\tcolor:windowtext}\r\n.MsoChpDefault\r\n\t{font-size:10.0pt}\r\n@page WordSection1\r\n\t{margin:1.0in 1.0in 1.0in 1.0in}\r\ndiv.WordSection1\r\n\t{}\r\n-->\r\n</style>\r\n</head>\r\n<body lang=\"EN-US\" link=\"#0563C1\" vlink=\"#954F72\">\r\n<div class=\"WordSection1\">\r\n<p class=\"MsoNormal\">&nbsp;</p>\r\n</div>\r\n</body>\r\n</html>\r\n"
            },
            "start": {
                "dateTime": "2020-01-07T04:00:00.0000000",
                "timeZone": "UTC"
            },
            "end": {
                "dateTime": "2020-01-07T04:30:00.0000000",
                "timeZone": "UTC"
            },
            "location": {
                "displayName": "eroom1",
                "locationType": "default",
                "uniqueId": "eroom1",
                "uniqueIdType": "private"
            },
            "locations": [
                {
                    "displayName": "eroom1",
                    "locationUri": "eroom1@faseas.com",
                    "locationType": "conferenceRoom",
                    "uniqueId": "d82dd7d7-84be-409c-b0ac-3270fab9cae1",
                    "uniqueIdType": "locationStore",
                    "address": {
                        "street": "",
                        "city": "",
                        "state": "",
                        "countryOrRegion": "",
                        "postalCode": ""
                    },
                    "coordinates": {}
                }
            ],
            "attendees": [
                {
                    "type": "required",
                    "status": {
                        "response": "none",
                        "time": "0001-01-01T00:00:00Z"
                    },
                    "emailAddress": {
                        "name": "Clark Kent",
                        "address": "superman@faseas.com"
                    }
                },
                {
                    "type": "resource",
                    "status": {
                        "response": "accepted",
                        "time": "2020-01-06T15:06:41.2030702Z"
                    },
                    "emailAddress": {
                        "name": "eroom1",
                        "address": "eroom1@faseas.com"
                    }
                }
            ],
            "organizer": {
                "emailAddress": {
                    "name": "Clark Kent",
                    "address": "superman@faseas.com"
                }
            }
        },
        {
            "@odata.etag": "W/\"Hc5Y9g+SrEiD927wWnr+uAAAAtkl3Q==\"",
            "id": "AAMkADhmNGRiYWQzLTE0NWEtNDk3NS1iNjlmLTIwMDI4NGIyYjBlNQFRAAgI15VgCTPAAEYAAAAAJPXDsq97oEiNGSjaLIw1nwcAHc5Y9g_SrEiD927wWnr_uAAAAAABDQAAHc5Y9g_SrEiD927wWnr_uAAAAQ98lwAAEA==",
            "createdDateTime": "2020-01-06T14:34:19.5208193Z",
            "lastModifiedDateTime": "2020-01-07T08:19:21.020372Z",
            "changeKey": "Hc5Y9g+SrEiD927wWnr+uAAAAtkl3Q==",
            "categories": [],
            "originalStartTimeZone": "India Standard Time",
            "originalEndTimeZone": "India Standard Time",
            "iCalUId": "040000008200E00074C5B7101A82E00807E4010A704E7379CCC4D501000000000000000010000000421DF698CC5210429047933E3603D06C",
            "reminderMinutesBeforeStart": 15,
            "isReminderOn": true,
            "hasAttachments": false,
            "subject": "Bla Bla Bla",
            "bodyPreview": "",
            "importance": "normal",
            "sensitivity": "normal",
            "isAllDay": false,
            "isCancelled": false,
            "isOrganizer": true,
            "responseRequested": true,
            "seriesMasterId": "AAMkADhmNGRiYWQzLTE0NWEtNDk3NS1iNjlmLTIwMDI4NGIyYjBlNQBGAAAAAAAk9cOyr3ugSI0ZKNosjDWfBwAdzlj2D5KsSIP3bvBaev64AAAAAAENAAAdzlj2D5KsSIP3bvBaev64AAABD3yXAAA=",
            "showAs": "busy",
            "type": "occurrence",
            "webLink": "https://outlook.office365.com/owa/?itemid=AAMkADhmNGRiYWQzLTE0NWEtNDk3NS1iNjlmLTIwMDI4NGIyYjBlNQFRAAgI15VgCTPAAEYAAAAAJPXDsq97oEiNGSjaLIw1nwcAHc5Y9g%2BSrEiD927wWnr%2BuAAAAAABDQAAHc5Y9g%2BSrEiD927wWnr%2BuAAAAQ98lwAAEA%3D%3D&exvsurl=1&path=/calendar/item",
            "onlineMeetingUrl": null,
            "recurrence": null,
            "responseStatus": {
                "response": "organizer",
                "time": "0001-01-01T00:00:00Z"
            },
            "body": {
                "contentType": "html",
                "content": "<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n<meta content=\"text/html; charset=us-ascii\">\r\n<meta name=\"Generator\" content=\"Microsoft Word 15 (filtered medium)\">\r\n<style>\r\n<!--\r\n@font-face\r\n\t{font-family:\"Cambria Math\"}\r\n@font-face\r\n\t{font-family:Calibri}\r\np.MsoNormal, li.MsoNormal, div.MsoNormal\r\n\t{margin:0in;\r\n\tmargin-bottom:.0001pt;\r\n\tfont-size:11.0pt;\r\n\tfont-family:\"Calibri\",sans-serif}\r\na:link, span.MsoHyperlink\r\n\t{color:#0563C1;\r\n\ttext-decoration:underline}\r\na:visited, span.MsoHyperlinkFollowed\r\n\t{color:#954F72;\r\n\ttext-decoration:underline}\r\np.msonormal0, li.msonormal0, div.msonormal0\r\n\t{margin-right:0in;\r\n\tmargin-left:0in;\r\n\tfont-size:11.0pt;\r\n\tfont-family:\"Calibri\",sans-serif}\r\nspan.EmailStyle18\r\n\t{font-family:\"Calibri\",sans-serif;\r\n\tcolor:windowtext}\r\n.MsoChpDefault\r\n\t{font-size:10.0pt}\r\n@page WordSection1\r\n\t{margin:1.0in 1.0in 1.0in 1.0in}\r\ndiv.WordSection1\r\n\t{}\r\n-->\r\n</style>\r\n</head>\r\n<body lang=\"EN-US\" link=\"#0563C1\" vlink=\"#954F72\">\r\n<div class=\"WordSection1\">\r\n<p class=\"MsoNormal\">&nbsp;</p>\r\n</div>\r\n</body>\r\n</html>\r\n"
            },
            "start": {
                "dateTime": "2020-01-10T04:00:00.0000000",
                "timeZone": "UTC"
            },
            "end": {
                "dateTime": "2020-01-10T04:30:00.0000000",
                "timeZone": "UTC"
            },
            "location": {
                "displayName": "eroom1",
                "locationType": "default",
                "uniqueId": "eroom1",
                "uniqueIdType": "private"
            },
            "locations": [
                {
                    "displayName": "eroom1",
                    "locationUri": "eroom1@faseas.com",
                    "locationType": "conferenceRoom",
                    "uniqueId": "d82dd7d7-84be-409c-b0ac-3270fab9cae1",
                    "uniqueIdType": "locationStore",
                    "address": {
                        "street": "",
                        "city": "",
                        "state": "",
                        "countryOrRegion": "",
                        "postalCode": ""
                    },
                    "coordinates": {}
                }
            ],
            "attendees": [
                {
                    "type": "required",
                    "status": {
                        "response": "none",
                        "time": "0001-01-01T00:00:00Z"
                    },
                    "emailAddress": {
                        "name": "Clark Kent",
                        "address": "superman@faseas.com"
                    }
                },
                {
                    "type": "resource",
                    "status": {
                        "response": "accepted",
                        "time": "2020-01-06T15:06:41.2030702Z"
                    },
                    "emailAddress": {
                        "name": "eroom1",
                        "address": "eroom1@faseas.com"
                    }
                }
            ],
            "organizer": {
                "emailAddress": {
                    "name": "Clark Kent",
                    "address": "superman@faseas.com"
                }
            }
        }
    ]
}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...