与 Outlook 插件清单中的其他扩展点一起使用?,outlook,microsoft-graph-api,office-js,outlook-addin,outlook-web-addins"/>

首页 > 解决方案 > 不能与 Outlook 插件清单中的其他扩展点一起使用?

问题描述

<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
<Hosts>
  <Host xsi:type="MailHost">
    <DesktopFormFactor>
      <FunctionFile resid="functionFile" />
      <ExtensionPoint xsi:type="MessageComposeCommandSurface">
        <OfficeTab id="TabDefault2">
          <Group id="msgWriteGroup">
            <Label resid="groupLabel" />
            <Control xsi:type="Button" id="msgWriteOpenPaneButton">
              <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>
          </Group>
        </OfficeTab>
      </ExtensionPoint>
    </DesktopFormFactor>
  </Host>
</Hosts>
<Resources>
  <bt:Images>
    <bt:Image id="icon16" DefaultValue="https://localhost:4200/assets/images/icon-32.png"/>
    <bt:Image id="icon32" DefaultValue="https://localhost:4200/assets/images/icon-32.png"/>
    <bt:Image id="icon80" DefaultValue="https://localhost:4200/assets/images/icon-32.png"/>
  </bt:Images>
  <bt:Urls>
    <bt:Url id="functionFile" DefaultValue="https://localhost:44383/"/>
    <bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://localhost:44383"/>
  </bt:Urls>
  <bt:ShortStrings>
    <bt:String id="customTabLabel"  DefaultValue="My Add-in Tab"/>
  </bt:ShortStrings>
</Resources>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
  <Hosts>
    <Host xsi:type="MailHost">
      <DesktopFormFactor>
        <FunctionFile resid="residUILessFunctionFileUrl" />
        <ExtensionPoint xsi:type="Events">
          <Event Type="ItemSend" FunctionExecution="synchronous" FunctionName="validateBody" />
        </ExtensionPoint>
      </DesktopFormFactor>
    </Host>
  </Hosts>
  <Resources>
    <bt:Urls>
      <bt:Url id="residUILessFunctionFileUrl" DefaultValue="https://localhost:4200/on-send" ></bt:Url>
    </bt:Urls>
  </Resources>
</VersionOverrides>

你好。上面的代码是我的 Outlook 插件清单。

我在邮件撰写窗口顶部的功能区按钮上看到了加载项按钮,我也想使用 On-Send 事件。

所以我合并了清单, onsend 事件有效,但按钮没有出现在撰写窗口中。

我不能和一起使用吗?

标签: outlookmicrosoft-graph-apioffice-jsoutlook-addinoutlook-web-addins

解决方案


功能区按钮和 OnSend 事件都需要是 Version Overrides 1.1。1.1 部分将在适用时完全覆盖 1.0 部分。

您可能希望将功能区按钮放在 1.1 和 1.0 中,并将 OnSend 事件仅放在 1.1 部分中。


推荐阅读