Exchange 日历:ConversationId 是 FindItem 事件主事件的良好标识符吗? [英] Exchange calendar: Is ConversationId a good identifier of master events for FindItem occurrences?

查看:14
本文介绍了Exchange 日历:ConversationId 是 FindItem 事件主事件的良好标识符吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 SOAP FindItem 调用在 Exchange 日历中收集约会.这将返回单个事件和(自定义)重复事件的发生.

I collect the appointments in an Exchange calendar with a SOAP FindItem call. This returns single events and (custom) occurrences of recurring events.

在处理这些时,我使用 GetItem 来检索每次出现的主事件的 ID (ItemType=citOccurrence).完成后,我可以确定是否仍需要在内部存储主事件(并检索其所有详细信息),或者我是否已经这样做了.

When processing these I use GetItem to retrieve the ID of the master event for each occurrence (ItemType=citOccurrence). After that is done, I can determine if I still need to store the master event internally (and retrieve all its details), or if I have already done so.

但是在较长的 FindItem 周期内多次发生相同的重复事件(尤其是无休止的事件),这意味着必须做很多 GetItem 'get master' 对服务器的调用(第一个导致你必须存储主控",而所有其他的都在你已经拥有这个主控").

But with many occurrence of the same recurring event (especially with unending ones) in a longer FindItem period, this means having to do a lot of GetItem 'get master' calls to the server (with the 1st one resulting in 'you must store the master' and all the others in 'you already have this master').

我查看了使用 BaseShape AllProperties 返回的属性,似乎 ConversationId 可能是我可以用来识别事件的属性同一个主事件.测试事件的样本数据:

I have looked at the properties returned with BaseShape AllProperties and it seems that ConversationId could be a property that I can use to identify occurrences of the same master event. Sample data for test events:

<t:ItemId Id="AAMk[snip]AAEA==" ChangeKey="DwAAABYAAABs2/j8u1jEQJde5BzoAC+PAAC5aMZ/"/>
<t:Subject>Occurrence</t:Subject>
<t:ConversationId Id="AAQkADgyMTc3ZTI4LTU1ZmItNGI5Yy04YzVjLTk2MjFiZjY5ODkyYgAQANxmlGQ/3ahArhg+mv+UJSo="/>

<t:ItemId Id="AAMk[snip]AAEA==" ChangeKey="DwAAABYAAABs2/j8u1jEQJde5BzoAC+PAAC5aMZ/"/>
<t:Subject>Modified occurrence</t:Subject>
<t:ConversationId Id="AAQkADgyMTc3ZTI4LTU1ZmItNGI5Yy04YzVjLTk2MjFiZjY5ODkyYgAQANxmlGQ/3ahArhg+mv+UJSo="/>

<t:ItemId Id="AAMk[snip]RrAAA=" ChangeKey="DwAAABYAAABs2/j8u1jEQJde5BzoAC+PAAC5aMaA"/>
<t:Subject>New single event</t:Subject>
<t:ConversationId Id="AAQkADgyMTc3ZTI4LTU1ZmItNGI5Yy04YzVjLTk2MjFiZjY5ODkyYgAQAMRNQtffkIdFvs73IVVJObM="/>

<t:ItemId Id="AAMk[snip]AAEA==" ChangeKey="DwAAABYAAABs2/j8u1jEQJde5BzoAC+PAAC5aMZ/"/>
<t:Subject>Occurrence</t:Subject>
<t:ConversationId Id="AAQkADgyMTc3ZTI4LTU1ZmItNGI5Yy04YzVjLTk2MjFiZjY5ODkyYgAQANxmlGQ/3ahArhg+mv+UJSo="/>

<t:ItemId Id="AAMk[snip]RtAAA=" ChangeKey="DwAAABYAAABs2/j8u1jEQJde5BzoAC+PAAC5aMaG"/>
<t:Subject>Meeting</t:Subject>
<t:ConversationId Id="AAQkADgyMTc3ZTI4LTU1ZmItNGI5Yy04YzVjLTk2MjFiZjY5ODkyYgAQAOZVB7gVSTJCtmZMMcXVBfQ="/>

问题:ConversationId 是用于此目的的可靠属性吗?

Question: Is ConversationId a reliable property to use for this?

注意事项:

  • 通过阅读,我得到的印象主要用于发送消息,而不是约会.

  • From reading around I get the impression that is primarily used for messages, not appointments.

这里有一个类似的问题,但这并不能明确回答我的问题.

There is a similar question here but that does not definitively answer mine.

另外,还有一些问题在 Exchange 2007 下检索 ConversationId,但 它们似乎可以解决.

Also, there are some issues retrieving ConversationId under Exchange 2007, but they seem solvable.

(已编辑添加) 快速测试 表明 ConversationIDUID 甚至 InstanceIndex 都是候选对象.哪个是确定的"?

(Edited to add) A quick test shows that ConversationID, UID, and even InstanceIndex are all candidates. Which is the 'definitive' one?

推荐答案

试试 iCalUID(我认为这是属性,但我可能会偏离一点).如果您有一个多房间会议,则两个房间中的约会的 UID 将相同.我已经有一段时间没有检查过了,但我相信同一个 master 的实例也是一样的.

Try iCalUID (I think that is the property, but I could be off a little). If you have a multi-room meeting, the UID will be the same for appointments in both rooms. I've not checked in some time, but I believe it will also be the same for instances of the same master.

这篇关于Exchange 日历:ConversationId 是 FindItem 事件主事件的良好标识符吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆