使用 WebDAV 和 Exchange 与 Outlook 创建的不同唯一 ID
我正在通过 WebDAV 在 Exchange 中创建约会,但创建的 UId 与在 Outlook 中创建约会不同。我认为 UId 与 GlobalObjectId 相同,并且应该是唯一的并且不能更改。
如果通过 WebDAV 创建的 UId 为:
CD0000008B9511D182D800C04FB1625DDD67374428B4C644A0A359A2586E30B3
如果通过 Outlook 创建的 UId 为:
040000008200E00074C5B7101A82E008000000002005332BA3A8CA01000000000000000010000000DD67374428B4C644A0A359A2586E30B3
如果我在 Outlook 中打开通过 WebDAV 创建的约会,然后再次保存,UId 会发生变化,这很烦人(UId 更改为上面以 04 开头的一个)。
UId 的后半部分是相同的 GUID {DD673744-28B4-C644-A0A3-59A2586E30B3} 并且永远不会改变。此处的文档 http://msdn.microsoft.com/ en-us/library/cc425490 (EXCHG.80).aspx 解释了 GlobalObjectId 的构造方式。 Outlook 似乎遵循这些规则,但 Exchange 却不遵循。我正在使用 Outlook 2007 和 Exchange 2007。
似乎有无数不同的 ID 可用于识别约会,而我只是在寻找一个保持不变的 ID,以便我可以随着时间的推移跟踪约会。
如果任何人都可以帮助解释为什么此 UId 会发生变化或创建它以使其不发生变化的方法,我们将不胜感激。我的限制是支持 Exchange 2003 SP2 和 Outlook 2003。
I am creating an appointment in Exchange via WebDAV, but the UId created is not the same as if I create the appointment in Outlook. The UId I believe is the same as the GlobalObjectId and should be unique and not change.
The UId if created via WebDAV is:
CD0000008B9511D182D800C04FB1625DDD67374428B4C644A0A359A2586E30B3
The UId if created through Outlook is:
040000008200E00074C5B7101A82E008000000002005332BA3A8CA01000000000000000010000000DD67374428B4C644A0A359A2586E30B3
If I open the appointment created via WebDAV in Outlook and then save it again the UId changes which is annoying (The UId changes to one above beginning with 04).
The second half of the UIds are the same GUID {DD673744-28B4-C644-A0A3-59A2586E30B3} and never change. The document here http://msdn.microsoft.com/en-us/library/cc425490 (EXCHG.80).aspx explains how the GlobalObjectId is constructed. Outlook seems to follow these rules, but Exchange doesn't. I am using Outlook 2007 and Exchange 2007.
There seems to be a myriad of different ids that can be used to identify appointments and I'm just looking for one that stays the same so I can track the appointment over time.
If anyone can help to explain why this UId changes or a way of creating it so it doesn't change it would be much appreciated. My limitations are supporting Exchange 2003 SP2 and Outlook 2003.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
哦,是的,ID 可以更改,这取决于客户和您访问项目的方式。这是一个正确的 PITA,
我认为该链接可能会对您有所帮助(不确切知道您在做什么)。
您也可以使用一些 mapi 属性,但您可能需要多解释一下您在做什么……您只做 WebDav 吗?
如何使用 WebDav 匹配 dav: href 到 Outlook Interop href 值
Oh yes Id can change, it can depend on the client and the way that you access the items. It a right PITA
I think the link may should help you though , (not knowing excatly what you are doing).
There are mapi proerties that you can use as well but you may have to explain what you are doing a bit more ... are you only doing WebDav ?
How to use WebDav to match dav:href to Outolook Interop href value