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

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

问题描述

我按照用于Node.js的Microsoft Graph Webhooks示例订阅事件的更改,即在事件被创建,更新或删除时得到通知.那些工作正常.

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'
};

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

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事件中收到有关标题,与​​会者,位置等字段的更改的通知?

例如,我期望的是插件查找时间的类似功能.在此外接程序中,您可以看到,如果添加或删除了与会者,则更改后,外接程序中的与会者也会立即更新.我希望事件创建页面中的所有字段都具有类似的功能.我还想知道现在是否可以实现这种实现?

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>

还要确保您更改为新的Outlook(现代). 然后尝试在Office.initialize中使用addHandlerAsync注册事件. https://docs.microsoft.com/zh-cn/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天全站免登陆