当我通过清单在 outlook 中获取加载项时如何创建新组?

How create new group when I get add-in in outlook by manifest?

我在理解如何在创建加载项时在 Outlook 中创建新组时遇到一些问题。 (需要通过代码制作,因为在我添加加载项后,我加载了一些信息并根据此信息配置组)

我使用教程 microsoft tutorial

这里我在列表菜单中添加加载项,但是如何将我的清单更改为create/add一个新组placing the group in outlook。

我可以只创建这个变体enter image description here

我只使用 visual studio 代码中的清单并尝试更改清单并查看更改

<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"> <!--https://docs.microsoft.com/en-us/office/dev/add-ins/reference/manifest/host-->
    <DesktopFormFactor>
      <FunctionFile resid="Commands.Url"/>          

    <!-- Message Compose -->
    <ExtensionPoint xsi:type="MessageComposeCommandSurface"> <!--https://docs.microsoft.com/en-us/office/dev/add-ins/reference/manifest/extensionpoint-->
      <OfficeTab id="TabDefault">  <!--https://docs.microsoft.com/en-us/office/dev/add-ins/reference/manifest/desktopformfactor-->
        <Group id="msgComposeCmdGroup">
          <Label resid="GroupLabel"/>
          <Control xsi:type="Button" id="msgComposeInsertGist">
            <Label resid="TaskpaneButton.Label"/>
            <Supertip>
              <Title resid="TaskpaneButton.Title"/>
              <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"/>
            </Action>
          </Control>
          <Control xsi:type="Button" id="msgComposeInsertDefaultGist">
            <Label resid="FunctionButton.Label"/>
            <Supertip>
              <Title resid="FunctionButton.Title"/>
              <Description resid="FunctionButton.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="ExecuteFunction">
              <FunctionName>insertDefaultGist</FunctionName>
            </Action>
          </Control>
        </Group>
      </OfficeTab>
    </ExtensionPoint>

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

<Resources> <!--https://docs.microsoft.com/en-us/office/dev/add-ins/reference/manifest/resources-->
  <bt:Images>
    <bt:Image id="Icon.16x16" DefaultValue="https://localhost:3000/assets/icon-16.png"/>
    <bt:Image id="Icon.32x32" DefaultValue="https://localhost:3000/assets/icon-32.png"/>
    <bt:Image id="Icon.80x80" DefaultValue="https://localhost:3000/assets/icon-80.png"/>
  </bt:Images>
  <bt:Urls>
    <bt:Url id="Commands.Url" DefaultValue="https://localhost:3000/commands.html"/>
    <bt:Url id="Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html"/>
  </bt:Urls>
  <bt:ShortStrings>
    <bt:String id="GroupLabel" DefaultValue="Git the gist"/>
    <bt:String id="TaskpaneButton.Label" DefaultValue="Insert gist"/>
    <bt:String id="TaskpaneButton.Title" DefaultValue="Insert gist"/>
    <bt:String id="FunctionButton.Label" DefaultValue="Insert default gist"/>
    <bt:String id="FunctionButton.Title" DefaultValue="Insert default gist"/>
  </bt:ShortStrings>
  <bt:LongStrings>
    <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Displays a list of your gists and allows you to insert their contents into the current message."/>
    <bt:String id="FunctionButton.Tooltip" DefaultValue="Inserts the content of the gist you mark as default into the current message."/>
  </bt:LongStrings>
</Resources>

我试图将 ExtensionPoint xsi:type="MessageComposeCommandSurface" 字段更改为许多变体,但我采用了无效的架构或相同的结果。 (MessageComposeCommandSurfaceAppointmentOrganizerCommandSurfaceAppointmentAttendeeCommandSurface 和其他..)

也许我做错了什么或者不明白如何正确更改清单以获得正确的结果。

在您分享的 screenshot 中。 群组部分适用于 O365 Groups,此表面不支持加载项。