Excel Online在尝试使用开发者租户自动显示和插入时添加404

更新:似乎XML不是问题,这个问题与使用开发租户有关。 据我所知,它使用Office 365 Home account正常运行,但在使用Office 365 Enterprise E3 Developer account时会引发403。 为什么这会扔403? 有什么我可以做的,所以我们可以testing,如果我们可以得到一个插件的任务面板自动显示模板?

标题编辑:从“ Excel Online Add in- How to auto show taskpane ”更改为“ Excel Online Add in- 403 when trying to autoshow and addin using a dev tenant Excel Online Add in- How to auto show taskpane Excel Online Add in- 403 when trying to autoshow and addin using a dev tenant

原文:我试图按照本指南自动显示插件: https : //dev.office.com/docs/add-ins/design/automatically-open-a-task-pane-with-a-document

由于我们目前在商店中使用的清单不使用<TaskpaneId>Office.AutoShowTaskpaneWithDocument</TaskpaneId>我试图用Script Lab来testing它

<we:webextension> xml如下

 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <we:webextension xmlns:we="http://schemas.microsoft.com/office/webextensions/webextension/2010/11" id="{8bc018e3-f345-40d4-8f1d-97951765d531}"> <we:reference id="WA104380862" version="1.1.0.2" store="en-US" storeType="OMEX"/> <we:alternateReferences/> <we:properties> <we:property name="Office.AutoShowTaskpaneWithDocument" value="true"/> </we:properties> <we:bindings/> <we:snapshot xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"/> </we:webextension> 

在我的<wetp:taskpane>我尝试设置visibility="1"visibility="0" ,但都不起作用。 当它是1我得到一个403,这是我的控制台

 OsfRuntimeExcelWac.js:12 GET https://store.office.com/gatedserviceextension.aspx?=313351b2_2e0ee2d3_1500571610901&ui=en-US&rs=en-US&ad=US&fromAR=4 403 () e5191e878673e5c7.js:1 Uncaught ReferenceError: $ is not defined at tn (e5191e878673e5c7.js:1) at new t (e5191e878673e5c7.js:1) at e5191e878673e5c7.js:1 MicrosoftAjax.js:5 Refused to set unsafe header "Cookie" HEAD https://store.office.com/gatedserviceextension.aspx?fromAR=3&corr=41fa9016-d510-90be-877b-25c612f780bb 403 () MicrosoftAjax.js:5 Request to /gatedserviceextension.aspx?fromAR=3&corr=41fa9016-d510-90be-877b-25c612f780bb came back with the status code: 

当它为0时,控制台中没有什么不寻常的事情,但没有任何反应。

我究竟做错了什么? 我只是误解这应该完成? 当visibility="1"它看起来好像在试图做某事,但是不被允许。 这是否意味着我无法自动加载脚本实验室? 他们的清单表明我可以。

任何帮助表示赞赏。 我们正在考虑使用正确的<TaskpaneId>来推送我们的Manifest的<TaskpaneId>testing它,但我们首先需要一个概念certificate。

你是怎么设定的

 <we:property name="Office.AutoShowTaskpaneWithDocument" value="true"/> 

在webextension?

你有直接修改吗? 您可以尝试在脚本中通过api设置实验室:

 Office.context.document.settings.set("Office.AutoShowTaskpaneWithDocument", true); Office.context.document.settings.saveAsync(); 

这确实是我们的代码问题,并且正在进行修复。 它只为某些业务客户的Office 365版本做了重新修改。 一旦我得到确认,我会更新我的答案,修复已经完全推出。