Outlook 日历 API 中任何用户的两个或多个事件的事件 ID 是否相同?
Can the Event ID for two or more events be the same for any user in Outlook Calendar API?
我正在使用 Outlook 日历 api 来管理 CRM 上的用户日历。据我所知,任何用户的事件 ID 对于其日历上的事件始终是唯一的。但是,在某些情况下,当我获取事件一段时间 window 时,我在服务器的响应中得到两个具有相同事件 ID 的事件(到目前为止,我得到一个 SeriesMaster 和一个 SingleInstance)。例如,请查看同一用户的两个事件。
第一个事件是:
"Start":{"DateTime":"2016-07-13T15:00:00.0000000","TimeZone":"UTC"},"End":{ "DateTime":"2016-07-13T15:30:00.0000000","TimeZone":"UTC"},"Location":{"DisplayName":"","LocationType":"Default","UniqueIdType":"Unknown","Address":{"Type":"Unknown"},"Coordinates":{}} ,"Locations":[],"Recurrence":{"Pattern":{"Type":"Weekly","Interval":1,"Month": 0,"DayOfMonth":0,"DaysOfWeek":["Monday","Tuesday","Wednesday","Thursday","Friday"],"FirstDayOfWeek":"Sunday","Index":"First"},"Range":{"Type":"NoEnd","StartDate":"2016 -07-13","EndDate":"0001-01-01","RecurrenceTimeZone":"Eastern Standard Time","NumberOfOccurrences":0}},"Attendees":[{ "Type":"Required","Status":{"Response":"None","Time":"0001-01-01T00:00:00Z"}, {"@odata.id":"https://outlook.office.com/api/v2.0/Users('4f3a5396-c4e1-4f96-9d47-88efd09cf7d5@69e9fa32-18c7-4580-8b68-5042cb060d21')/事件('AQMkADlhNWMwNTJiLTUxOWQtNDBlZC05MWExLWMxNjRmZWY3ZDE3NABGAAAD5qmKtv6ZXUGI6fp4FLgPGwcAc0VsZLFXUEWDJV8jau5I2AAAAgENAAAAc0VsZLFXUEWDJV8jau5I2AAAAdBPbQAAAA==')", "@odata.etag":"W/\"c0VsZLFXUEWDJV8jau5I2AAAIehEGA==\"","Id":"AQMkADlhNWMwNTJiLTUxOWQtNDBlZC05MWExLWMxNjRmZWY3ZDE3NABGAAAD5qmKtv6ZXUGI6fp4FLgPGwcAc0VsZLFXUEWDJV8jau5I2AAAAgENAAAAc0VsZLFXUEWDJV8jau5I2AAAAdBPbQAAAA==","CreatedDateTime":" 2018-03-12T01:49:57.8583046Z","LastModifiedDateTime":"2018-05-02T18:46:31.9407131Z","ChangeKey":"c0VsZLFXUEWDJV8jau5I2AAAIehEGA==","Categories":[ ],"OriginalStartTimeZone":"Eastern Standard Time","OriginalEndTimeZone":"Eastern Standard Time","iCalUId":"040000008200E0 0074C5B7101A82E0080000000000005047993733DCD101000000000000000000000000000000000000000000000000000000000000000000000000000000000000F92FB0575724C8DFBC43970F08489 100=]:"Normal","Sensitivity":"Normal","IsAllDay":假,"IsCancelled":假,"IsOrganizer":真,"ResponseRequested":true,"SeriesMasterId":null,"ShowAs":"Busy","Type":"SeriesMaster"
并且,第二个事件是:
"Start":{"DateTime":"2018-05-03T19:00:00.0000000","TimeZone":"UTC"},"End":{ "DateTime":"2018-05-03T19:30:00.0000000","TimeZone":"UTC"},"Location":{"DisplayName":"","LocationType":"Default","UniqueIdType":"Unknown","Address":{"Type":"Unknown"},"Coordinates":{}} ,"Locations":[],"Recurrence":null,{"@odata.id":"https://outlook.office.com/api/v2.0/Users('4f3a5396-c4e1-4f96-9d47-88efd09cf7d5@69e9fa32-18c7- 4580-8b68-5042cb060d21')/事件('AQMkADlhNWMwNTJiLTUxOWQtNDBlZC05MWExLWMxNjRmZWY3ZDE3NABGAAAD5qmKtv6ZXUGI6fp4FLgPGwcAc0VsZLFXUEWDJV8jau5I2AAAAgENAAAAc0VsZLFXUEWDJV8jau5I2AAAAdBpbQAAAA==')","@odata.etag":"W/\"c0VsZLFXUEWDJV8jau5I2AAAIehD6A==\"","Id":"AQMkADlhNWMwNTJiLTUxOWQtNDBlZC05MWExLWMxNjRmZWY3ZDE3NABGAAAD5qmKtv6ZXUGI6fp4FLgPGwcAc0VsZLFXUEWDJV8jau5I2AAAAgENAAAAc0VsZLFXUEWDJV8jau5I2AAAAdBpbQAAAA==","CreatedDateTime":"2018-05-02T18:19:45.1643323Z","LastModifiedDateTime":"2018-05-02T18:25:39.7135811Z","ChangeKey":"c0VsZLFXUEWDJV8jau5I2AAAIehD6A==","Categories":[],"OriginalStartTimeZone":"UTC","OriginalEndTimeZone":"UTC","iCalUId": “ 0400008200E00074C5B7101A82E0080000000000004F75B80342E2D30100000000000000000000000000000000000000000000000000000000000000005F99309424248CD3488815FEDB972AC66C8 ],"Sensitivity":"Normal","IsAllDay":false,"IsCancelled":false,"IsOrganizer":false,"ResponseRequested":true,"SeriesMasterId":null,"ShowAs":"Busy","Type":"SingleInstance"
它们不一样。我猜你是在以不区分大小写的方式进行比较。但是,项目 ID 区分大小写。
我正在使用 Outlook 日历 api 来管理 CRM 上的用户日历。据我所知,任何用户的事件 ID 对于其日历上的事件始终是唯一的。但是,在某些情况下,当我获取事件一段时间 window 时,我在服务器的响应中得到两个具有相同事件 ID 的事件(到目前为止,我得到一个 SeriesMaster 和一个 SingleInstance)。例如,请查看同一用户的两个事件。
第一个事件是:
"Start":{"DateTime":"2016-07-13T15:00:00.0000000","TimeZone":"UTC"},"End":{ "DateTime":"2016-07-13T15:30:00.0000000","TimeZone":"UTC"},"Location":{"DisplayName":"","LocationType":"Default","UniqueIdType":"Unknown","Address":{"Type":"Unknown"},"Coordinates":{}} ,"Locations":[],"Recurrence":{"Pattern":{"Type":"Weekly","Interval":1,"Month": 0,"DayOfMonth":0,"DaysOfWeek":["Monday","Tuesday","Wednesday","Thursday","Friday"],"FirstDayOfWeek":"Sunday","Index":"First"},"Range":{"Type":"NoEnd","StartDate":"2016 -07-13","EndDate":"0001-01-01","RecurrenceTimeZone":"Eastern Standard Time","NumberOfOccurrences":0}},"Attendees":[{ "Type":"Required","Status":{"Response":"None","Time":"0001-01-01T00:00:00Z"}, {"@odata.id":"https://outlook.office.com/api/v2.0/Users('4f3a5396-c4e1-4f96-9d47-88efd09cf7d5@69e9fa32-18c7-4580-8b68-5042cb060d21')/事件('AQMkADlhNWMwNTJiLTUxOWQtNDBlZC05MWExLWMxNjRmZWY3ZDE3NABGAAAD5qmKtv6ZXUGI6fp4FLgPGwcAc0VsZLFXUEWDJV8jau5I2AAAAgENAAAAc0VsZLFXUEWDJV8jau5I2AAAAdBPbQAAAA==')", "@odata.etag":"W/\"c0VsZLFXUEWDJV8jau5I2AAAIehEGA==\"","Id":"AQMkADlhNWMwNTJiLTUxOWQtNDBlZC05MWExLWMxNjRmZWY3ZDE3NABGAAAD5qmKtv6ZXUGI6fp4FLgPGwcAc0VsZLFXUEWDJV8jau5I2AAAAgENAAAAc0VsZLFXUEWDJV8jau5I2AAAAdBPbQAAAA==","CreatedDateTime":" 2018-03-12T01:49:57.8583046Z","LastModifiedDateTime":"2018-05-02T18:46:31.9407131Z","ChangeKey":"c0VsZLFXUEWDJV8jau5I2AAAIehEGA==","Categories":[ ],"OriginalStartTimeZone":"Eastern Standard Time","OriginalEndTimeZone":"Eastern Standard Time","iCalUId":"040000008200E0 0074C5B7101A82E0080000000000005047993733DCD101000000000000000000000000000000000000000000000000000000000000000000000000000000000000F92FB0575724C8DFBC43970F08489 100=]:"Normal","Sensitivity":"Normal","IsAllDay":假,"IsCancelled":假,"IsOrganizer":真,"ResponseRequested":true,"SeriesMasterId":null,"ShowAs":"Busy","Type":"SeriesMaster"
并且,第二个事件是:
"Start":{"DateTime":"2018-05-03T19:00:00.0000000","TimeZone":"UTC"},"End":{ "DateTime":"2018-05-03T19:30:00.0000000","TimeZone":"UTC"},"Location":{"DisplayName":"","LocationType":"Default","UniqueIdType":"Unknown","Address":{"Type":"Unknown"},"Coordinates":{}} ,"Locations":[],"Recurrence":null,{"@odata.id":"https://outlook.office.com/api/v2.0/Users('4f3a5396-c4e1-4f96-9d47-88efd09cf7d5@69e9fa32-18c7- 4580-8b68-5042cb060d21')/事件('AQMkADlhNWMwNTJiLTUxOWQtNDBlZC05MWExLWMxNjRmZWY3ZDE3NABGAAAD5qmKtv6ZXUGI6fp4FLgPGwcAc0VsZLFXUEWDJV8jau5I2AAAAgENAAAAc0VsZLFXUEWDJV8jau5I2AAAAdBpbQAAAA==')","@odata.etag":"W/\"c0VsZLFXUEWDJV8jau5I2AAAIehD6A==\"","Id":"AQMkADlhNWMwNTJiLTUxOWQtNDBlZC05MWExLWMxNjRmZWY3ZDE3NABGAAAD5qmKtv6ZXUGI6fp4FLgPGwcAc0VsZLFXUEWDJV8jau5I2AAAAgENAAAAc0VsZLFXUEWDJV8jau5I2AAAAdBpbQAAAA==","CreatedDateTime":"2018-05-02T18:19:45.1643323Z","LastModifiedDateTime":"2018-05-02T18:25:39.7135811Z","ChangeKey":"c0VsZLFXUEWDJV8jau5I2AAAIehD6A==","Categories":[],"OriginalStartTimeZone":"UTC","OriginalEndTimeZone":"UTC","iCalUId": “ 0400008200E00074C5B7101A82E0080000000000004F75B80342E2D30100000000000000000000000000000000000000000000000000000000000000005F99309424248CD3488815FEDB972AC66C8 ],"Sensitivity":"Normal","IsAllDay":false,"IsCancelled":false,"IsOrganizer":false,"ResponseRequested":true,"SeriesMasterId":null,"ShowAs":"Busy","Type":"SingleInstance"
它们不一样。我猜你是在以不区分大小写的方式进行比较。但是,项目 ID 区分大小写。