简体   繁体   English

如何将周期性事件从 Outlook 发送到 Google 日历

[英]How to send a recurring event from Outlook to Google Calendar

I have some Outlook VBA code which executes when I add an event to my Outlook calendar.我有一些 Outlook VBA 代码,当我将事件添加到我的 Outlook 日历时执行。 The code makes use of the google calendar API to send the event information to google.该代码使用谷歌日历 API 将事件信息发送到谷歌。 Google them updates my google calendar.谷歌他们更新我的谷歌日历。 I also have code which, when I delete an event from my Outlook calendar, will send a DELETE to google through the calendar API. Google then deletes the event from my google calendar.我也有代码,当我从我的 Outlook 日历中删除一个事件时,将通过日历 API 向谷歌发送一个删除。谷歌然后从我的谷歌日历中删除该事件。 This code works perfectly.此代码完美运行。

Now I need to write the VBA code which will send recurring event data to google.现在我需要编写 VBA 代码,它将重复发生的事件数据发送到谷歌。 Is there a simple way to send this information?有没有一种简单的方法来发送这些信息? Is there an online service that I can send information to and have an RRule string generated?是否有我可以向其发送信息并生成 RRule 字符串的在线服务? Do I have to build the RRule string manually?我必须手动构建 RRule 字符串吗?

Thank you.谢谢。

If you deal with Office365 account you may consider using the Graph API directly without involving client applications like Outlook. For the Exchange on-premise you may consider using Exchange Web Services, see Start using web services in Exchange for more information.如果您处理 Office365 帐户,您可以考虑直接使用Graph API ,而无需涉及 Outlook 等客户端应用程序。对于内部部署的 Exchange,您可以考虑使用 Exchange Web 服务,请参阅开始在 Exchange 中使用 web 服务以获取更多信息。

If you need to end up with a client-side solution you may consider creating a VSTO based add-in (COM add-in) which can sync everything with your system.如果您最终需要一个客户端解决方案,您可以考虑创建一个基于 VSTO 的加载项(COM 加载项),它可以将所有内容与您的系统同步。 See Walkthrough: Create your first VSTO Add-in for Outlook to get started quickly.请参阅演练:为 Outlook 创建您的第一个 VSTO 外接程序以快速入门。 VBA was not designed for distributing solutions on multiple machines. VBA 不是为在多台机器上分发解决方案而设计的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM