我试图确定这是否可能:
Outlook Web 加载项(即适用于 Web 和 Outlook 的 JavaScript 加载项,而不是基于 COM 的加载项)是否可以在阅读模式(即用户正在阅读电子邮件、不撰写新电子邮件或回复电子邮件)。
如果电子邮件包含超链接,我需要做的是触发加载项(看起来我可以使用正则表达式通过上下文加载项来做到这一点),然后修改这些超链接(更改 href 或添加 onClick 事件处理程序)所以如果用户点击它们,行为就会不同。
office.js当互联网被阻止时,使用从GitHub下载的脱机库下载的Outlook加载项不起作用。Office.js库在本地服务器上托管。
<script type="text/javascript" src="/node_modules/@microsoft/office-js/dist/office.js"></script>
Run Code Online (Sandbox Code Playgroud)
Outlook客户端版本:16.0.4738.1000 32-bit
GitHub office-js库版本:1.1.11
访问加载项后,将在弹出窗口中提示错误消息。
Error: Object doesn't support property or method 'registerEnum'
URL:
https://localhost/node_modules/@microsoft/office-js/dist/outlook-15.04.js
Run Code Online (Sandbox Code Playgroud)
和
Error: Unable to get property 'read' of undefined or null reference
URL:
https://localhost/node_modules/@microsoft/office-js/dist/o15apptofilemappingtable.js
Run Code Online (Sandbox Code Playgroud)
分析网络调用表明,该库在内部调用其他联机库。这样的图书馆之一是https://ajax.aspnetcdn.com/ajax/3.5/MicrosoftAjax.js
有什么方法可以将该库脱机用于阻止Internet访问的部署?
注意:启用Internet后,使用此库的Outlook加载项可以正常工作。
我正在尝试调试Mac版Outlook加载项的无UI按钮。
在我的代码中,中的无UI功能function-file.js。包含在中function-file.html,它被设置为FunctionFilexml清单中的url。我也有在XML清单中使用<Action xsi:type="ExecuteFunction">标签引用名称的无UI功能。最后,我已经按照以下说明设置了vorlon进行调试。
当我单击无UI按钮时,新客户端将出现在Vorlon上。但是,我无法像通常的调试器那样获得信息。
console.log()语句)。相反,调试打开屏幕的按钮可以正常工作;域资源管理器,对象资源管理器,Office加载项和控制台都可以使用。
这使我认为,当我在Vorlon上看到客户端时,Javascript代码(用于无UI的按钮)已完成执行,并且不再可用于调试。如果正确,是否可以调试Office加载项的无UI按钮?如果是这样,怎么办?
I am using a tutorial that gets the email email properties using Outlook Add-in and now I am trying to get the email body. All the research I am getting is using mostly this statement to get it.
function getEmailBody() {
Office.context.mailbox.item.body.getAsync(Office.CoercionType.Text, function callback(asyncResult) {
return asyncResult.value;
});
But when I run it, it returns empty and when I put a debugger on it, the asyncResult has these values:
value: null status: failed error: OSF.DDA.Error name: GenericResponseError message: An internal …
我需要为一些时间计算创建一个Outlook插件.实际要求是 -
使用Visual Studio 2015,我查看了VSTO,但他们没有可以从服务器读取html的html页面.我还查看了Outlook WebAddin - 模块扩展,但仅适用于Outlook 2016及更高版本.
任何人都可以建议我什么是我的要求的正确方法.如果被问到,我可以提供更多有关要求的说明.谢谢.
vsto outlook-addin office365 visual-studio-2015 outlook-web-addins