我目前在Office365中遇到附件添加问题
function attachFiles() {
Office.context.mailbox.item.addFileAttachmentAsync('https://www.google.es/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png', filename, { asyncContext: null }, testCallback);
}
function testCallback(result) {
if (result.error) {
console.log(result.error);
} else {
console.log("Attachment added");
}
}
上面的代码将始终在以下错误中导致(在一些超时后):
OSF.DDA.Error {name: "InternalFormatError", message: "Hubo un error de formato interno.", code: 9002}
该代码几天前已经过测试,没有任何问题,现在它已停止工作。
更新08/02/2016: 在Office365上,addFileAttachmentAsync似乎全局破坏。甚至github上的自己的样本都没有工作(https://github.com/OfficeDev/Outlook-Power-Hour-Code-Samples)。寻找解决方法......
更新08/02/2016 15:41 GMT + 1
我已经测试了Office365 addin商店中使用addFileAttachmentAsync API调用的另一个插件,它也不起作用(Dropbox到Outlook导入https://store.office.com/dropbox-to-outlook-import-WA104379875.aspx?assetid=WA104379875&sourcecorrid=866179b6-8806-4f78-b927-320db5dd6282&searchapppos=4)。如果有人可以从其他地区测试它并且电子邮件确认这不是我的帐户的问题我会非常感激。这是同一错误的屏幕截图:
答案 0 :(得分:0)
这可能是由于网络连接问题,重新尝试上传。此外,请确保您未超过要在Office 365租户上传的文件大小的最大限制。