How to get recurrence data from JavaScript API in office365

久未见 提交于 2019-11-26 18:39:19

问题


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.


回答1:


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.

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

  • 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)

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



来源:https://stackoverflow.com/questions/35768988/how-to-get-recurrence-data-from-javascript-api-in-office365

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!