如何从其他人分享给我的日历中获取项目 [英] How to got items from a calendar that others shared to me
问题描述
大家,
我想使用Exchange Web Service Managed API来实现一些功能,案例如下:
我有一个帐户,我们将其命名为"ConfAdmin",我有很多其他帐户名为"ConfRoom1","ConfRoom2"和"ConfRoom2"。等等"ConfRoom< x>"将日历共享到"ConfAdmin",也就是说,"ConfAdmin"和"ConfAdmin"。可以看到这些"ConfRoom< x>"的日历。我的问题是,如何使用Exchange Web服务托管API来获取"ConfRoom< x>"共享日历的日历项目,只需使用"ConfAdmin"帐户。 br />
如果它是已共享的默认日历,则需要设置DistinguishedFolderIdType的邮箱属性(如果使用原始XML,则为子元素)。我假设您正在进行GetFolder或FindItem调用 - 这当然可以假设调用者有权使用confAdmin的邮箱。
< t: DistinguishedFolderId Id =" calendar">
< t:Mailbox>
< t:EmailAddress> confadmin@domain.com< / t:EmailAddress>
< / t:DistinguishedFolderId> ;
< / T:邮箱和GT;
如果它不是默认日历文件夹,那么您只需使用来自conAdmin邮箱的文件夹ID,因为邮箱标识已经是嵌入在FolderId中。
Hi, everybody,
I want to use Exchange Web Service Managed API to implements some functions, the case is below:
I have a account we named it to "ConfAdmin", and I have a lot of other account named like "ConfRoom1", "ConfRoom2" etc. The "ConfRoom<x>" shared there calendar to the "ConfAdmin", it is to say, the "ConfAdmin" can see these "ConfRoom<x>"'s calendar. My problem is that, how can I use the Exchange Web Service Managed API to get the calendar items of the "ConfRoom<x>"'s shared calender just use the account of the "ConfAdmin".
If it is the default calendar that has been shared, then you will need to set the Mailbox property (or child element if you are using raw XML) of DistinguishedFolderIdType. I assume you are do a GetFolder or FindItem call - this will work in either assuming of course that the caller has rights to confAdmin's mailbox.
<t:DistinguishedFolderId Id="calendar">
<t:Mailbox>
<t:EmailAddress>confadmin@domain.com</t:EmailAddress>
</t:DistinguishedFolderId>
</t:Mailbox>
If it is not the default calendar folder, then you just use the folder Id from conAdmin's mailbox since the mailbox identifier is already embedded in the FolderId.
这篇关于如何从其他人分享给我的日历中获取项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!