0

We are building a new Office Add-in for Outlook, but we are not capable of opening the correct SourceLocation when redacting a new email. Our manifest does have the ExtensionPoint for the compose scenario, but every time we create a new email the Read scenario taskpane pops in.

<ExtensionPoint xsi:type="MessageComposeCommandSurface">
  <OfficeTab id="TabDefault">
    <Group id="msgComposeGroup">
      <Label resid="GroupLabel"/>
      <Control xsi:type="Button" id="msgComposeOpenPaneButton">
        <Label resid="ComposeTaskpaneButton.Label"/>
        <Supertip>
          <Title resid="ComposeTaskpaneButton.Label"/>
          <Description resid="ComposeTaskpaneButton.Tooltip"/>
        </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="ComposeTaskpane.Url"/>
        </Action>
      </Control>
    </Group>
  </OfficeTab>
  </ExtensionPoint>
</DesktopFormFactor>
...
<Resources>
  <bt:Urls>
    <bt:Url id="Taskpane.Url" DefaultValue="https://stackoverflow.com/taskpane.html"/>
    <bt:Url id="ComposeTaskpane.Url" DefaultValue="https://stackoverflow.com/compose.html"/>
  </bt:Urls>
  <bt:ShortStrings>
    <bt:String id="GroupLabel" DefaultValue="TitleName"/>
    <bt:String id="TaskpaneButton.Label" DefaultValue="Taskpane name"/>
    <bt:String id="ComposeTaskpaneButton.Label" DefaultValue="Compose"/>
  </bt:ShortStrings>
  <bt:LongStrings>
    <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Long description"/>
    <bt:String id="ComposeTaskpaneButton.Tooltip" DefaultValue="Long description"/>
  </bt:LongStrings>
</Resources>

Is there any other option of configuration we may need to set in our manifest?

Steps to reproduce:

  • Click on New Email and see the compose email view in outlook.
  • Click on the icon to open the panel of the Add-in.

Expected to:

  • Add-in should open the "compose.html" view, since that's what defined on the ComposeTaskpane.Url id and since the ExtentionPoint is set MessageComposeCommandSurface.

Actual result:

  • Add-in opening the "taskpane.html" view, which is defined on the Taskpane.Url id.
3
  • Sometimes, the add-in button appears under the "Apps" menu instead of directly on the ribbon. Please make sure to check there as well when testing. Commented Sep 25 at 7:49
  • 1
    I found the issue, i'll update this question with an answer. Commented Sep 29 at 21:59
  • have you fixed this? Commented Oct 26 at 11:06

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.