对于 Outlook 日历 API 中的任何用户,两个或多个事件的事件 ID 是不是相同?
Posted
技术标签:
【中文标题】对于 Outlook 日历 API 中的任何用户,两个或多个事件的事件 ID 是不是相同?【英文标题】:Can the Event ID for two or more events be the same for any user in Outlook Calendar API?对于 Outlook 日历 API 中的任何用户,两个或多个事件的事件 ID 是否相同? 【发布时间】:2018-05-09 06:48:31 【问题描述】:我正在使用 Outlook 日历 API 来管理 CRM 上的用户日历。据我所知,任何用户的事件 ID 对于他们日历上的事件总是唯一的。但是,在某些情况下,当我获取某个时间窗口的事件时,我会在来自服务器的响应中得到两个具有相同事件 ID 的事件(到目前为止,我得到一个 SeriesMaster 和一个 SingleInstance)。例如,请查看同一用户的两个事件。
第一个事件是:
"开始":"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","范围":"Type":"NoEnd","StartDate":"2016-07-13","EndDate":"0001-01-01","RecurrenceTimeZone":"东部标准时间","NumberOfOccurrences": 0,"参加者":["类型":"必填","状态":"响应":"无","时间":"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/\"c0VsZLFXUEWDJV 8jau5I2AAAIehEGA == \ “”, “ID”: “的 AQMkADlhNWMwNTJiLTUxOWQtNDBlZC05MWExLWMxNjRmZWY3ZDE3NABGAAAD5qmKtv6ZXUGI6fp4FLgPGwcAc0VsZLFXUEWDJV8jau5I2AAAAgENAAAAc0VsZLFXUEWDJV8jau5I2AAAAdBPbQAAAA == 强>”, “CreatedDateTime”: “2018-03-12T01:49:57.8583046Z”, “LastModifiedDateTime”:“2018-05- 02T18:46:31.9407131Z","ChangeKey":"c0VsZLFXUEWDJV8jau5I2AAAIehEGA==","Categories":[],"OriginalStartTimeZone":"东部标准时间","OriginalEndTimeZone":"东部标准时间","iCalUId":" 040000008200E00074C5B7101A82E008000000005047993733DCD101000000000000000010000000E97F92FB0575724C8DFBC43970F08489" , “ReminderMinutesBeforeStart”:15, “IsReminderOn”:真实的, “HasAttachments”:假的, “主题”: “APPT”, “BodyPreview”: “”, “重要性”: “正常”, “灵敏度”:“正常","IsAllDay":false,"IsCancelled":false,"IsOrganizer":true,"ResponseRequested":true,"SeriesMasterId":null,"ShowAs":"Busy","Type":"SeriesMaster"
并且,第二个事件是:
"开始":"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": "未知","坐标":,"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","Original EndTimeZone “:” UTC “ ”iCalUId“: ”040000008200E00074C5B7101A82E008000000004F75B80342E2D3010000000000000000100000005F993094248CD348815FEDB972AC66C8“, ”ReminderMinutesBeforeStart“:15, ”IsReminderOn“:真实的, ”HasAttachments“:假的, ”主题“: ”备用健康 - 现代企业“, ”重要性“:”正常","敏感度":"正常","IsAllDay":false,"IsCancelled":false,"IsOrganizer":false,"ResponseRequested":true,"SeriesMasterId":null,"ShowAs":"忙碌","类型":"SingleInstance"
【问题讨论】:
【参考方案1】:那些不一样。我猜你正在以不区分大小写的方式进行比较。但是,项目的 ID 区分大小写。
【讨论】:
哦!是的,我以不区分大小写的方式进行操作。非常感谢您提供此信息。以上是关于对于 Outlook 日历 API 中的任何用户,两个或多个事件的事件 ID 是不是相同?的主要内容,如果未能解决你的问题,请参考以下文章
使用 Outlook 日历休息 API 添加与会者会删除较旧的与会者
检索显示奇怪行为的日历项目(Outlook API、WebDAV)