验证清单版本Office365插件

时间:2016-07-05 17:20:01

标签: office365 manifest office-addins office-js

我们正试图向商店提交我们的第一个办公室插件,但由于Outlook webaccess 2013而被拒绝。我们正在尝试使用2013年不应支持的1.3 api,但验证团队仍在测试owa 2013。

在此页面上,微软明确指出,OWA 2013需要1.1。 http://dev.office.com/reference/add-ins/outlook/tutorial-api-requirement-sets

验证团队的评论是: 您的加载项无法在Windows 7上使用Internet Explorer 11的Outlook 2013客户端中运行。用户无法向Hogia进行身份验证。在向O365和Hogia进行身份验证后,身份验证弹出窗口关闭,但用户未登录。

Fiddler跟踪中不再显示404错误,但用户未登录到任务窗格,并且加载项不可用。

如果您不支持2013 SP1,因为您使用的是仅在2016 / Online中提供的API,则必须将这些api放在清单中的requirements标记中。如果您未使用仅在2016 / Online中提供的API,则必须支持2013 SP1。

以下是我们的匿名清单。关于如何将插件限制为仅1.3的任何想法。可能xml命名空间也应该是1.3吗?

<?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using transformations
     see the web.config examples at http://go.microsoft.com/fwlink/?LinkId=214134. -->

<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>0ada1ef7-1cea-4e3a-b946-a234e777d07b</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Provider</ProviderName>
  <DefaultLocale>sv-SE</DefaultLocale>

  <DisplayName DefaultValue="Name"/>
  <Description DefaultValue="Description"/>
  <IconUrl DefaultValue="url" />
  <HighResolutionIconUrl DefaultValue="url" />
  <SupportUrl DefaultValue="url" />
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>

  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.3" />
    </Sets>
  </Requirements>
  <!-- These elements support older clients that don't support add-in commands -->
  <FormSettings>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="url"/>
      </DesktopSettings>
      <TabletSettings>
        <SourceLocation DefaultValue="url"/>
      </TabletSettings>
      <PhoneSettings>
        <SourceLocation DefaultValue="url"/>
      </PhoneSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteMailbox</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Edit" />
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>
    <Hosts>
      <Host xsi:type="MailHost">

        <DesktopFormFactor>
          <!-- Location of the Functions that UI-less buttons can trigger (ExecuteFunction Actions). -->
          <FunctionFile resid="functionFile" />

          <!-- Message Read -->
          <ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface">
            <!-- 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="apptComposeDemoGroup">
                <Label resid="groupLabel" />
                <!-- Launch the add-in : task pane button -->
                <Control xsi:type="Button" id="apptComposeFunctionButton">
                  <Label resid="funcComposeButtonLabel" />
                  <Supertip>
                    <Title resid="funcComposeButtonLabel" />
                    <Description resid="funcComposeSuperTipDescription" />
                  </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="functionFile" />
                  </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="url"/>
        <bt:Image id="icon32" DefaultValue="url"/>
        <bt:Image id="icon80" DefaultValue="url"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="functionFile" DefaultValue="url"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Name"/>
        <bt:String id="funcComposeButtonLabel"  DefaultValue="Name"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="paneReadSuperTipDescription" DefaultValue="string"/>
        <bt:String id="funcComposeSuperTipTitle" DefaultValue="string"/>
        <bt:String id="funcComposeSuperTipDescription" DefaultValue="string"/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>

1 个答案:

答案 0 :(得分:0)

鉴于此问题与OAUTH有关,我建议您查看Dialog API。此API的核心目的之一是处理这样的场景。

这假设您对目标Outlook 2013不感兴趣。 Dialog API需要Mailbox 1.4,仅在2016年支持。通过要求1.4,Outlook 2013上不会显示加载项。