Frappe 提供了与 Google 日历的集成功能,以便所有用户同步其事件。
设置
为了实现与 Google 日历的同步,您需要在 Google Cloud Platform 中连接到您的应用程序,然后为每位用户创建一个账户:
- 在 Google Cloud Platform 上创建一个新项目,并生成新的 OAuth 2.0 凭据
- 将
https://{yoursite}添加到“已授权的 JavaScript 来源”中 - 将
https://{yoursite}?cmd=frappe.integrations.doctype.gcalendar_settings.gcalendar_settings.google_callback添加为“已授权的重定向 URI” - 在 Gcalendar 应用程序中添加您的客户端 ID 和客户端密钥:在“模块 > 集成 > Google 日历 > GCalendar 设置”中
此步骤成功完成后,每位用户都可以在“Google 日历 > GCalendar 账户”中创建自己的账户。
系统将请求用户授权您的 Google 应用程序访问其日历信息,然后用户将被重定向到一个成功页面。
功能
- 在 Google 日历中创建新日历
- 每位用户都可以为其 Google 日历选择一个专属名称。
- 将事件从 Frappe 同步到 GCalendar
- 在 Frappe 中创建的所有事件都会在 Google 日历中创建。
- 重复事件也会作为重复事件创建。
- 您可以选择性地为事件添加 Google Meet 会议链接。
- 所有参与者(用户邮箱)都会被添加到事件中。
- 在 Frappe 中修改的事件会在 Google 日历中更新。
- 在 Frappe 中删除的事件会在 Google 日历中删除。
- 将事件从 GCalendar 同步到 Frappe
- 在 Google 日历中创建的事件会在 Frappe 中创建。
- 在 Google 日历中更新的事件会在 Frappe 中更新。
同步模块遵循 Frappe 的授权规则:只有公开的事件,或者用户是事件所有者时,事件才会被同步。
限制
目前,如果在 Google 日历中取消了某个重复事件的单个实例,此更改不会反映到 Frappe 中。