如何从office365中的JavaScript API获取重复数据 [英] How to get recurrence data from JavaScript API in office365

查看:352
本文介绍了如何从office365中的JavaScript API获取重复数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要获取重复,从,到字段等约会的重复数据。此外,我还需要在撰写模式时获取Outlook办公室加载项的每日,每周或每月模式详细信息。

I need to fetch recurrence data for appointments like Repeat, From, To fields. In addition, I also need to get daily, weekly, or monthly pattern details for my Outlook office Add-in while it is in compose mode.

推荐答案

在Outlook Web加载项中,当某些内容无法直接从 Office.js库您可以尝试使用Exchange Web服务访问这些数据。

In an Outlook web add-in when something is not available directly from Office.js library you can try to get access to those data using Exchange Web Services.

幸运的是,Office.js提供了两种访问EWS的方法。

Fortunately, Office.js provides two ways to access EWS.


  • 您可以通过客户端应用程序的SOAP请求直接请求EWS。请参阅 makeEwsRequestAsync > Office.context.mailbox

  • 您可以获取EWS令牌,将其发送到您的服务器并从那里发出请求。然后你可以使用一个很好的SDK,如这个一个。您将从 Office.Context.mailblox 调用 getCallbackTokenAsync 方法来检索此类令牌。在此链接中,您将找到有关如何使用此功能的示例检索电子邮件附件的技术(在Office.js中不可用)

  • You can request directly the EWS with a SOAP request from your client app. See method makeEwsRequestAsync in Office.context.mailbox
  • You can get an EWS token, send it to your server and make the request from there. Then you can use a nice SDK such as this one. You will invoke the method getCallbackTokenAsync from Office.Context.mailblox to retrieve such a token. In this link you will find an example on how to use this technique to retrieve email attachments (not available in Office.js)

为了更准确地回答,EWS似乎公开了您需要的信息有关约会的重复发生,等等,请参阅此链接

To answer more precisely, the EWS seems to expose the information you need regarding recurrence, To etc. for appointments, see this link.

这篇关于如何从office365中的JavaScript API获取重复数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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