订阅 Outlook 日历/事件字段中的更改 [英] Subscribe to changes in Outlook calendar/event fields

查看:38
本文介绍了订阅 Outlook 日历/事件字段中的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照 Microsoft Graph Webhooks Node.js 示例中描述的步骤 订阅事件的更改,即在创建、更新或删除事件时获得通知.这些工作正常.

I followed the steps described in Microsoft Graph Webhooks Sample for Node.js to subscribe to the changes in events, i.e. to get notified if an event is created, updated or deleted. Those are working fine.

我的constant.js文件如下

My constant.js file is as follows

exports.subscriptionConfiguration = {
  changeType: 'Created,updated,deleted',
  notificationUrl: 'https://my_ngrok_id.ngrok.io/listen',
  resource: 'me/events',
  clientState: 'cLIENTsTATEfORvALIDATION'
};

我真正想做的是订阅事件字段的更改,以便我可以立即更新我的插件中的这些字段.

What I really want to do is to subscribe to changes in event fields so that I can immediately update those fields in my Addin.

是否会在 Outlook 活动中的标题、参与者、位置等字段发生更改时立即收到通知?

例如,我期望插件 Find Time 具有类似的功能.在此插件中,您可以看到,如果添加或删除与会者,插件中的与会者也会在更改后立即更新.我希望事件创建页面中的所有字段都具有类似的功能.我也想知道现在这样的实现是否可行?

For example, what I expect is a similar functionality of the addin Find Time. In this addin you can see, if an attendee is added or removed, the attendee in the addin also gets updated right after the change is made. I want similar functionality for all the fields in event creation page. I would also like to know whether such an implementation is possible right now?

推荐答案

能否请您在 manifest.xml 文件中将 DefaultMinVersion 更改为 1.7.

Can you please change the DefaultMinVersion to 1.7 in the manifest.xml file.

<Requirements>
  <bt:Sets DefaultMinVersion="1.7">
    <bt:Set Name="Mailbox" />
  </bt:Sets>
</Requirements>

还要确保您更改为新的前景(现代).然后尝试使用 Office.initialize 中的 addHandlerAsync 注册事件.https://docs.microsoft.com/en-us/office/dev/add-ins/reference/objectmodel/requirement-set-1.7/office.context.mailbox.item#addhandlerasynceventtype-handler-options-callback目前支持Office.EventType.AppointmentTimeChangedOffice.EventType.RecipientsChangedOffice.EventType.RecurrenceChanged.

Also make sure that you change to new outlook(modern). Then try to register events using addHandlerAsync within the Office.initialize. https://docs.microsoft.com/en-us/office/dev/add-ins/reference/objectmodel/requirement-set-1.7/office.context.mailbox.item#addhandlerasynceventtype-handler-options-callback Currently it supports Office.EventType.AppointmentTimeChanged, Office.EventType.RecipientsChanged, and Office.EventType.RecurrenceChanged.

这篇关于订阅 Outlook 日历/事件字段中的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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