首页 > 解决方案 > 对于某些用户,Outlook 加载项在 Outlook 2013 Desktop 上显示为灰色

问题描述

我在使用 Outlook 插件时遇到了这个问题。因此,该插件由 IT 在公司内部发布,每个人都可以在 OWA 上看到它,并且它按预期的方式运行。

现在,对于某些用户来说,当他们打开 Outlook 2013 Desktop 时,它会显示为灰色,如下所示在此处输入图像描述

当我去管理 owa 上的加载项时,这就是我所看到的,看起来还不错:

在此处输入图像描述

我尝试禁用其他加载项以查看这些加载项是否导致冲突并且不起作用。这是清单文件:我删除了一些与公司相关的行并修改了 url,但其余部分是相同的。

    <FormSettings>
    <!--
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="~remoteAppUrl/AppRead/Home/Home.html"/>
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
    -->
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation               DefaultValue="~remoteAppUrl/MailForms/AppCompose/1.0.0.3/Home/Home.html"/>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" />
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Edit" />
    <!--
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Read" />
    -->
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.4">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>
     <DesktopFormFactor>
          <!-- Location of the Functions that UI-less buttons can trigger (ExecuteFunction Actions). -->
          <FunctionFile resid="functionFile" />

          <!-- Message Read -->
          <!--<ExtensionPoint xsi:type="MessageReadCommandSurface">
            --><!-- Use the default tab of the ExtensionPoint or create your own with <CustomTab id="myTab"> --><!--
            <OfficeTab id="TabDefault">
              --><!-- Up to 6 Groups added per Tab --><!--
              <Group id="msgReadGroup">
                <Label resid="groupLabel" />
                --><!-- Launch the add-in : task pane button --><!--
                <Control xsi:type="Button" id="msgReadOpenPaneButton">
                  <Label resid="paneReadButtonLabel" />
                  <Supertip>
                    <Title resid="paneReadSuperTipTitle" />
                    <Description resid="paneReadSuperTipDescription" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="icon16" />
                    <bt:Image size="32" resid="icon32" />
                    <bt:Image size="80" resid="icon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="messageReadTaskPaneUrl" />
                  </Action>
                </Control>
                --><!-- Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu --><!--
              </Group>
            </OfficeTab>
          </ExtensionPoint>-->
          
          <!-- Message Compose -->
          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <!-- Use the default tab of the ExtensionPoint or create your own with <CustomTab id="myTab"> -->
            <OfficeTab id="TabDefault">
              <!-- Up to 6 Groups added per Tab -->
              <Group id="msgReadGroup">
                <Label resid="groupLabel" />
                <!-- Launch the add-in : task pane button -->
                <Control xsi:type="Button" id="msgReadOpenPaneButton">
                  <Label resid="paneReadButtonLabel" />
                  <Supertip>
                    <Title resid="paneReadSuperTipTitle" />
                    <Description resid="paneReadSuperTipDescription" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="icon16" />
                    <bt:Image size="32" resid="icon32" />
                    <bt:Image size="80" resid="icon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="messageComposeTaskPaneUrl" />
                  </Action>
                </Control>
                <!-- Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu -->
              </Group>
            </OfficeTab>
          </ExtensionPoint>
          <!-- Go to http://aka.ms/ExtensionPointsCommands to learn how to add more Extension Points: MessageRead, AppointmentOrganizer, AppointmentAttendee -->
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="icon16" DefaultValue="~remoteAppUrl/MailForms/Images/icon16.png"/>
        <bt:Image id="icon32" DefaultValue="~remoteAppUrl/MailForms/Images/icon32.png"/>
        <bt:Image id="icon80" DefaultValue="~remoteAppUrl/MailForms/Images/icon80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="functionFile" DefaultValue=" ~remoteAppUrl/MailForms/Functions/FunctionFile.html"/>
        <!--<bt:Url id="messageReadTaskPaneUrl" DefaultValue="~remoteAppUrl/AppRead/Home/Home.html"/>-->
        <bt:Url id="messageComposeTaskPaneUrl" DefaultValue="~remoteAppUrl/MailForms/AppCompose/1.0.0.3/Home/Home.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="My Add-in Group"/>
        <bt:String id="customTabLabel"  DefaultValue="My Add-in Tab"/>
        <bt:String id="paneReadButtonLabel" DefaultValue="Messageware Mail Forms"/>
        <bt:String id="paneReadSuperTipTitle" DefaultValue="Get all properties"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="paneReadSuperTipDescription" DefaultValue="Opens a pane displaying all available properties. This is an example of a button that opens a task pane."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
在此处输入图像描述 有任何想法吗?

标签: outlookoffice365office365apioffice365-apps

解决方案


好的 - 所以你的 DefaultMinVersion 是 1.4:

<bt:Sets DefaultMinVersion="1.4">

根据需求集文档,需求集 1.4 通过kb 3118280添加到 Outlook 2013 ,即版本 15.0.4859.1000。因此,您应该检查您正在运行的 Outlook 2013 的版本。任何过期的客户端都将提供 1.3 或更低的要求集,并将图标显示为灰色。

您对 Salesforce 的评论让我想起了我刚刚调试的一些事情。Outlook 本身的版本与需求集无关。重要的是 osf.dll 和 osfshared.dll 的版本。所以很可能这已经过时了。尝试最新的 OSF 更新,看看是否能让 Salesforce 正常工作。

我在要求集文档中提交的错误:https ://github.com/OfficeDev/office-js-docs/issues/1461


推荐阅读