问题标签 [outlook-web-addins]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
outlook - outlook add-in image & files
I try to find solution to my problems but didn't find any where,hope that someone here can save me.
I write add-in in JavaScript on VS2015 that encrypte and decrypte body messages.
1. The first problem is with images that the receiver can't see . (Talk about images that copy into the body by "insert picture inline" button)
In Compose mode we encrypte the message and then when we decrypte it's works good because the compose mode is a client side and he his recognize the local images . In read mode when user want to decrypte the message and to see the images he couldn't see because the encrypte prevent outlook to convert the local image to data on the server .
In my code I take the body message like this ( compose mode )
then , the user send the encrypte message by clicking 'send' regular.
In the read mode I just print it to my html to check if the decrypte is good :
and then i get icon of picture ,but not success to show the real pic . The src of the icon is going for place that not access for him ..
How can i take this tag of image and do something that the receiver can see the image ? I don't want that user will be need to upload image to body from my my add-in instead of the original outlook. I try to convert the image to base-64 string, but with what I have in the tag it not enough ,just with original picture and also it success to show in html but not in the body of message with SetAsync function..
2. The second problem is with attachments . I upload files with dropzone plug-in (because outlook don't give access to take attachment and change him). So, after I upload files and encrypte him I make some new file with the response from server with File API of JS :
than I want to attach the file to mail, so the only method that do this is:
then,I need to create a url for file for this method so I use this method:
But now when I use the method addFileAttachmentAsync with objectURL it's write that there is a problem and its can't attach it , I think that the URL is incorrect .
Thanks all!!
office-addins - Office 加载项中的 DialogApi 是否适用于所有主机?
我们知道 OAUTH 流无法像在普通(非 iFramed)Web 应用程序中那样在 Office 加载项中实现,我们必须依赖一些弹出技术:请参阅此处的最佳解释。
为了克服这个问题,微软在 Office.js 中发布了一个dialogAPI。此对话框 API 有一段时间仅适用于 Office 桌面。
如果开发人员想要一个在 Office Online 上运行的解决方案(并允许在 Office 商店中分发),他必须实施一个涉及普通旧浏览器弹出窗口的后备解决方案。备注:这是我们在我们发布的 Outlook 开源示例中所做的。
如文档中所述,要测试可用性,我们必须使用此代码示例进行检查
if (Office.context.requirements.isSetSupported('DialogAPI', 1.1)) {
// 使用 Office UI 方法;} else { // 备用路径 }
问题是,今天,即使 if() 语句返回 false,我也尝试强制使用 dialogAPI。惊喜,看起来 dialogAPI 甚至在 Office Online 中也能正常工作!(Chrome、Edge、FF、IE 测试)。那岩石!
我的问题是:
- 我们是否会在 Office Online 中为所有浏览器(包括移动设备)提供 dialogAPI?
- 我们可以在准备生产时获得 ETA 吗?
- 我们是否必须继续实施后备解决方案?
- 旧的 Office 版本怎么样(如果它适用于所有浏览器,也许也适用于旧的 IE)?
outlook - Outlook Web App:检索联系人
我正在开发在 Outlook365 和 Outlook.com 上运行的 Outlook Web 插件。我需要使用该 Web 插件创建、读取和更新联系人。以下是将当前用户添加到To
电子邮件字段的示例。
谁能指出我如何使用 Outlook Web 插件检索 Outlook 联系人?
谢谢
outlook - 在 Outlook 中使用模块扩展
我正在创建 Outlook 加载项,并且想试用新的模块扩展。但是,按照以下示例:https://dev.office.com/docs/add-ins/outlook/extension-module-outlook-add-ins,创建清单时出现错误。
错误发生在第二个 VersionOverrides 上,消息如下:
“命名空间‘http://schemas microsoft com/office/mailappversionoverrides’中的元素‘VersionOverrides’在命名空间‘http://schemas microsoft com/office/mailappversionoverrides/1.1’中有无效的子元素‘VersionOverrides’。可能的元素列表预期:命名空间“http://schemas microsoft com/office/mailappversionoverrides”中的“描述、要求、主机”。”
因为我不能发布超过 2 个链接,所以我已经替换了 . 在带有空格的 URL 中。
在 versionoverride 中包含 versionoverride 对我来说似乎很奇怪,但如果我以任何方式更改第一个,VS 不会接受它作为遵循模式。同样,如果我不包括第二个版本覆盖,VS 会给出以下错误:
“这是一个无效的 xsi:type 'http://schemas microsoft com/office/mailappversionoverrides:Module'。”
清单的其余部分几乎与 officeDev 中的示例对称,除了 Title 和 Id 等元素。
我究竟做错了什么?
office365 - 自定义 Outlook 邮件应用程序在 Android 和 iPad 中不起作用
我已经为 Office 365 中的 Outlook Web App 开发了自定义 Outlook Mail App。它在浏览器中的 Outlook Web App 中运行良好。但是,当我尝试在 iPad 和 Android 中从 OWA 应用程序运行相同的应用程序时,我遇到了错误。
错误说
出问题了!我们无法启动此加载项
请提供一些参考资料,我可以从中使我的应用程序也可以在移动应用程序上运行。
java - 在 Office 365 Outlook Web 加载项中使用 Vaadin UI
我正在为我们在 Java 和 Vaadin 6 框架上开发的产品之一开发 Office 365 Outlook 插件。我们的 Java 应用程序有一个非常复杂的接口。我们正在尝试在 Outlook Web 插件中创建类似的界面。
实际上,我们想要实现的是,我们希望在 Outlook Web 插件中使用相同的 Java Vaadin UI。我们不想使用 javascript 创建 UI 作为我们的主要 Java 应用程序的 UI,它过于复杂并且在不同的场景中不断变化。
根据文档,加载项中不允许使用 iframe。所以有人可以建议我一种方法来实现这一点吗?提前致谢 !
exchangewebservices - 旁加载 Outlook 加载项时出错
当我尝试旁加载我的 Outlook 加载项(基于 Andrew Salamatov 上次 Ignite 会话创建的)时,当我从 URL ( https://bulkpermissiondemo.azurewebsites.net/manifest-bulkpermission添加加载项时出现以下错误.xml ):“无法安装该应用程序。您的帐户连接到的 Exchange Server 版本不支持此应用程序。”
知道我做错了什么吗?
谢谢 :-)
office365api - 如何通过Office.js在撰写模式下确定用户打开的Outlook约会项目是发生、异常还是主系列?
在通过 Office.js 在撰写模式下的日历重复事件(约会)的上下文中,我需要为相应的约会主系列项目设置自定义属性,或者用户打开的事件是发生、异常或主系列。
这是我通过 office.js API 面临的问题是,我无法识别用户打开的约会是事件、异常还是主系列。我怎样才能识别它?如果这是一个事件或异常,那么我如何通过 Office.js 从当前项目上下文将自定义属性添加到相应的主系列项目。