OutLook加载项命令&没有在Outlook中显示

时间:2016-05-11 12:04:19

标签: outlook ms-office outlook-addin

我收到了微软的回复 验证测试结果:

"您的加载项必须使用加载项命令,因为它会触发所有邮件或所有约会。引入了加载项命令,因为它们可以带来更好,更易被发现的原生和引人入胜的体验。要了解如何实现加载项命令,请参阅此文章:https://msdn.microsoft.com/ENUS/library/office/mt267547.aspx

您的加载项在带有Internet Explorer 11的Windows 10上的Outlook 2016客户端或带有Internet Explorer 11的Windows 7上的Outlook 2013客户端中不起作用。在阅读任何电子邮件时,我们无法触发您的加载项。注意:在Outlook Web App中查看电子邮件时,我们可以插入您的加载项。"

我无法理解我做错了什么。为什么我的加载项不在Outlook中显示?

我的清单(所有网址):

    <?xml version="1.0" encoding="UTF-8"?>
<!--Created:cb85b80c-f585-40ff-8bfc-12ff4d0e34a9-->
<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>9230b645-1919-43a0-a568-1f2300fe06b0</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Information Technologies Ltd.</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Clobbi CRM" />
  <Description DefaultValue="Clobbi CRM"/>
  <IconUrl DefaultValue="MY_URL" />
  <HighResolutionIconUrl DefaultValue="MY_URL" />
  <SupportUrl DefaultValue="https://support.it.ua"></SupportUrl>
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="MailBox" />
    </Sets>
  </Requirements>
  <FormSettings >
    <Form xsi:type="ItemRead">
      <DesktopSettings>        
        <SourceLocation DefaultValue="MY_URL"/>
        <RequestedHeight>450</RequestedHeight>        
      </DesktopSettings>
    </Form>    
  </FormSettings>
  <Permissions>ReadItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <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">

    <Description resid="residDescription" />

    <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>

    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>        

         <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msgReadDemoGroup">
                <Label resid="groupLabel" />
                 <Control xsi:type="Button" id="msgReadOpenPaneButton">
                  <Label resid="paneReadButtonLabel" />
                  <Supertip>
                    <Title resid="paneReadSuperTipTitle" />
                    <Description resid="paneReadSuperTipDescription" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="green-icon-16" />
                    <bt:Image size="32" resid="green-icon-32" />
                    <bt:Image size="80" resid="green-icon-80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="readTaskPaneUrl" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>

        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="green-icon-16" DefaultValue="MY_URL"/>
        <bt:Image id="green-icon-32" DefaultValue="MY_URL"/>
        <bt:Image id="green-icon-80" DefaultValue="MY_URL"/>     
      </bt:Images>
      <bt:Urls>
        <bt:Url id="functionFile" DefaultValue="MY_URL"/>
        <bt:Url id="readTaskPaneUrl" DefaultValue="MY URL"/>            
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Clobbi CRM"/>
        <bt:String id="paneReadButtonLabel" DefaultValue="Clobbi CRM"/>
        <bt:String id="paneReadSuperTipTitle" DefaultValue="Нажмите чтобы открыть Clobbi CRM."/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="paneReadSuperTipDescription" DefaultValue="Нажмите чтобы открыть Clobbi CRM."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>

1 个答案:

答案 0 :(得分:0)

<Description resid="residDescription" />是指未包含在<Resources>中的残差。

它根本没有出现的原因与此有关。定义VersionOverrides Outlook for Windows将忽略默认设置(即您“覆盖”的设置)。当它在VersionOverrides内遇到错误时,它无法呈现加载项命令。不幸的是,Outlook不会“退回”到默认处理,它只是无法加载加载项。