WebDAV 和 Exchange Server - 在过去 X 天内修改联系人?
我有一个 PHP 应用程序,它连接到 Microsoft Exchange 服务器以通过 WebDAV 检索“联系人”。
我是否可以向 Microsoft Exchange 发出 WebDAV 查询,以仅获取过去 X 天内更改或添加的联系人?
与每次查询所有 30 个联系人并为每条记录执行检查/更新/插入操作相比,处理起来要容易一些。
I have a PHP application which connects to Microsoft Exchange server to retrieve 'Contacts' via WebDAV.
Is there a WebDAV query I can issue to Microsoft Exchange to get only contacts that have been changed or added within the last X days?
It'd be a bit easier to deal with than querying for all 30 bajillion contacts every time and doing the check/update/insert thing for every record.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想查看该网站上的优秀示例。 http://www.troywolf.com/articles/php/exchange_webdav_examples.php。它们是关于如何使用 PHP 通过 WebDAV 访问 Exchange 的很好的参考。他甚至还有一个关于搜索联系人的功能,http://www.troywolf.com /articles/php/exchange_webdav_examples.php#search_contacts,但没有提及包含您感兴趣的约束字段的确切字段,所以我会帮助您。
搜索 Exchange 存储 (http://msdn.microsoft。 com/en-us/library/aa123573(EXCHG.65).aspx) 是一个很好的起点。您具体要寻找的是指定日期范围 http ://msdn.microsoft.com/en-us/library/aa123600(EXCHG.65).aspx 详细说明了使用 dav:creationdate 字段的语法。
有关 DAV 命名空间的更多信息,请访问 http://msdn.microsoft.com/ en-us/library/aa565717.aspx 以及。
祝你好运!
You might want to check out the excellent examples at this website. http://www.troywolf.com/articles/php/exchange_webdav_examples.php. They're great reference on how to access Exchange via WebDAV using PHP. He even has one on searching for contacts, http://www.troywolf.com/articles/php/exchange_webdav_examples.php#search_contacts, but doesn't mention the exact field that contains the field you're interested in constraining on, so I'll help you out.
Searching the Exchange store (http://msdn.microsoft.com/en-us/library/aa123573(EXCHG.65).aspx) is a great starting place. What you're looking for specifically is Specify a Date range http://msdn.microsoft.com/en-us/library/aa123600(EXCHG.65).aspx which spells out the syntax for using the dav:creationdate field.
There's more information on the DAV namespace here http://msdn.microsoft.com/en-us/library/aa565717.aspx as well.
Good luck!