1 MB response size limit with outlook web add-ins

霸气de小男生 提交于 2019-12-02 07:14:22

It is not possible to make EWS requests to the client side that exceed 1 MB, however you can give your server the information that it needs to make the request itself.

You first need to call Office.context.mailbox.getCallbackTokenAsync which will give you a token you can use to make EWS requests from your server.

Then you will need to get the item ID which is available through Office.context.mailbox.item.itemId.

Finally, you need the url to make the request to, which is Office.context.mailbox.ewsUrl

With these 3 pieces of information, your server can make the SOAP call to EWS from your backend, and bypass the 1 MB limit imposed on the client. At this point, you can pass whatever information needed back to your client.

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