【发布时间】:2021-07-14 15:50:38
【问题描述】:
我开发了一个小型 Outlook 插件,应该在共享邮箱中使用。
问题如下:
在“新”Outlook for mac 中,它只能在共享邮箱中打开一次。之后,插件会变灰。
在 Outlook 网页版中,无法在共享邮箱中使用固定功能
详情:
我加了
<DesktopFormFactor>
<SupportsSharedFolders>true</SupportsSharedFolders>
到清单,使其在共享邮箱中工作。
我们的一位用户使用 Mac 并切换到“新 Outlook”。当他在共享邮箱中时,插件可以打开一次。 (打开个人邮箱后) 之后图标变灰,无法再次打开(仅限切换到个人邮箱再返回时)。将鼠标悬停在插件上时,会出现以下消息:
在“旧”的 Outlook for Mac 中它似乎可以工作,但用户不想使用它。
起初我认为它可能与 WebApplicationInfo 及其授权有关,但如果没有这部分,它会显示相同的行为。
有趣的是,它在全新安装后也可以工作一段时间。如果我新添加 manifest.xml,它可以用于一两个会话。
在 web 客户端中出现不同的问题,可以在共享邮箱中加载 Addin 但固定不起作用。
这是完整的清单(没有 url 和名称),我知道它不包含旧 Outlook 版本的版本。但是我们的用户群非常有限,每个人都使用最新的客户端。
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" xsi:type="MailApp">
<Id>{{ID}}</Id>
<Version>1.0.0.0</Version>
<ProviderName>{{Provider}}</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="{{Name}"/>
<Description DefaultValue="{{Description}"/>
<IconUrl DefaultValue="https://test.app/Icon"/>
<HighResolutionIconUrl DefaultValue="https://test.app/Icon2"/>
<SupportUrl DefaultValue="https://test.app/Help"/>
<AppDomains>
<AppDomain>https://test.app/</AppDomain>
</AppDomains>
<Hosts>
<Host Name="Mailbox"/>
</Hosts>
<Requirements>
<Sets DefaultMinVersion="1.1">
<Set Name="Mailbox" MinVersion="1.1"/>
</Sets>
</Requirements>
<FormSettings>
<Form xsi:type="ItemRead">
<DesktopSettings>
<SourceLocation DefaultValue="https://test.app/pane"/>
<RequestedHeight>250</RequestedHeight>
</DesktopSettings>
</Form>
</FormSettings>
<Permissions>ReadWriteMailbox</Permissions>
<Rule xsi:type="RuleCollection" Mode="Or">
<Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
</Rule>
<DisableEntityHighlighting>false</DisableEntityHighlighting>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
<Requirements>
<bt:Sets DefaultMinVersion="1.3">
<bt:Set Name="Mailbox"/>
</bt:Sets>
</Requirements>
<Hosts>
<Host xsi:type="MailHost">
<DesktopFormFactor>
<SupportsSharedFolders>true</SupportsSharedFolders>
<ExtensionPoint xsi:type="MessageReadCommandSurface">
<OfficeTab id="TabDefault">
<Group id="msgReadGroup">
<Label resid="GroupLabel"/>
<Control xsi:type="Button" id="msgReadOpenPaneButton">
<Label resid="TaskpaneButton.Label"/>
<Supertip>
<Title resid="TaskpaneButton.Label"/>
<Description resid="TaskpaneButton.Tooltip"/>
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.16x16"/>
<bt:Image size="32" resid="Icon.32x32"/>
<bt:Image size="80" resid="Icon.80x80"/>
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="Taskpane.Url"/>
<SupportsPinning>true</SupportsPinning>
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="Icon.16x16" DefaultValue="https://test.app/Icon1"/>
<bt:Image id="Icon.32x32" DefaultValue="https://test.app/Icon2"/>
<bt:Image id="Icon.80x80" DefaultValue="https://test.app/Icon3"/>
</bt:Images>
<bt:Urls>
<bt:Url id="Taskpane.Url" DefaultValue="https://test.app/Pane"/>
</bt:Urls>
<bt:ShortStrings>
<bt:String id="GroupLabel" DefaultValue=""/>
<bt:String id="TaskpaneButton.Label" DefaultValue=""/>
</bt:ShortStrings>
<bt:LongStrings>
<bt:String id="TaskpaneButton.Tooltip" DefaultValue="Opens a pane displaying all available properties."/>
</bt:LongStrings>
</Resources>
<WebApplicationInfo>
<Id>{{ID}}</Id>
<Resource>{{URI}}</Resource>
<Scopes>
<Scope>offline_access</Scope>
<Scope>openid</Scope>
<Scope>profile</Scope>
<Scope>Mail.ReadWrite.Shared</Scope>
<Scope>Mail.Send.Shared</Scope>
<Scope>User.Read</Scope>
</Scopes>
</WebApplicationInfo>
</VersionOverrides>
</VersionOverrides>
</OfficeApp>
【问题讨论】:
-
您能否通过单击帮助->收集诊断在 Outlook Mac 中生成诊断 ID 并将其共享给 admin@M365x010952.onmicrosoft.com?
-
感谢分享诊断 ID。加载项无法在共享邮箱中运行的原因是尚未在生产中启用共享文件夹支持。我们在此处记录了生产中不受支持的功能docs.microsoft.com/en-us/office/dev/add-ins/outlook/…。
-
Insiders Fast 版本现在提供共享邮箱支持。我们建议您尝试最新的 Insiders 版本,如果问题得到解决,请告诉我们。加入 Insiders 文档:insider.office.com/en-us/join/mac
-
感谢您的信息。我从 beta 频道安装了这个版本。 (16.49 21041800)。相同的行为。可以打开一次,之后就变灰了。
-
另一方面,MS 插件(如 OneNote)确实有效。我们还从商店安装了DocuSign,可以在共享邮箱中使用。
标签: outlook outlook-addin office-addins outlook-web-addins