What's wrong with my manifest?


I am following this tutorial - https://docs.microsoft.com/en-us/outlook/add-ins/addin-tutorial


When reading an email, it adds a button, which, when clicked, opend a pane with a static HTML Page. My plans are two-fold 1) the button should eb shown when composing 2) I wil replace the static HTML Page by an AngularJS app which I have written.


I havev moved the button from the read compose dialog. However, when I click it, the static webpage is no longer shown. Instead, I see a "loading" indication then, after a few seconds, an error.


Presumably there is something wrong withmy manifest, but the MS validator says that it is ok. As described here https://docs.microsoft.com/en-us/office/dev/add-ins/testing/troubleshoot-manifest


Can anyone see my problem? Or point me at an example add in for message compose which I could copy? Thanks


<?xml version="1.0" encoding="UTF-8"?>

  <!-- Begin Basic Settings: Add-in metadata, used for all versions of Office unless override provided. -->

  <!-- IMPORTANT! Id must be unique for your add-in, if you reuse this manifest ensure that you change this id to a new GUID. -->

  <!--Version. Updates from the store only get triggered if there is a version change. -->
  <ProviderName>Our magnificent octopus</ProviderName>
  <!-- The display name of your add-in. Used on the store and various places of the Office UI such as the add-ins dialog. -->
  <DisplayName DefaultValue="Argus" />
  <Description DefaultValue="Add description here"/>

  <!-- Icon for your add-in. Used on installation screens and the add-ins dialog. -->
  <IconUrl DefaultValue="https://localhost:3000/assets/icon-32.png" />
  <HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/hi-res-icon.png"/>

  <!--If you plan to submit this add-in to the Office Store, uncomment the SupportUrl element below-->
  <SupportUrl DefaultValue="https://keellings.com" />

  <!-- Domains that will be allowed when navigating. For example, if you use ShowTaskpane and then have an href link, navigation will only be allowed if the domain is on this list. -->
  <!--End Basic Settings. -->

    <Host Name="Mailbox" />
      <Set Name="Mailbox" MinVersion="1.1" />
    <Form xsi:type="ItemRead">
        <SourceLocation DefaultValue="https://localhost:3000/index.html"/>

  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
      <bt:Sets DefaultMinVersion="1.3">
        <bt:Set Name="Mailbox" />
      <Host xsi:type="MailHost">

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

         <!-- Go to http://aka.ms/ExtensionPointsCommands to learn how to add more Extension Points: MessageRead, AppointmentOrganizer, AppointmentAttendee -->
          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgComposeCmdGroup">
                  <Label resid="groupLabel"/>
                  <Control xsi:type="Button" id="msgComposeArgus">
                    <Label resid="argusLabel"/>
                      <Title resid="argusTitle"/>
                      <Description resid="argusDesc"/>
                      <bt:Image size="16" resid="icon16"/>
                      <bt:Image size="32" resid="icon32"/>
                      <bt:Image size="80" resid="icon80"/>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="argusPaneUrl" />

        <bt:Image id="icon16" DefaultValue="https://localhost:3000/assets/icon-16.png"/>
        <bt:Image id="icon32" DefaultValue="https://localhost:3000/assets/icon-32.png"/>
        <bt:Image id="icon80" DefaultValue="https://localhost:3000/assets/icon-80.png"/>

        <bt:Url id="functionFile" DefaultValue="https://localhost:3000/function-file/function-file.html"/>
        <bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://localhost:3000/index.html"/>
        <bt:Url id="argusPaneUrl" DefaultValue="https://localhost:3000/page_1.html"/>

        <bt:String id="groupLabel" DefaultValue="Argus Add-in Group"/>
        <bt:String id="customTabLabel"  DefaultValue="Argus Add-in Tab"/>
        <bt:String id="paneReadButtonLabel" DefaultValue="Do some Argus stuphz"/>
        <bt:String id="paneReadSuperTipTitle" DefaultValue="Click here for Argus"/>
        <bt:String id="argusLabel" DefaultValue="Argus 1">
           <!-- Override can be added to all strings, to provide language localization -->
           <bt:Override Locale="es-ES" Value="Eso es espan~ol"/>

        <bt:String id="argusTitle" DefaultValue="Argus 2">

        <bt:String id="paneReadSuperTipDescription" DefaultValue="Opens a pane displaying all available properties. This is an example of a button that opens a task pane."/>
        <bt:String id="argusDesc" DefaultValue="Displays a list of your Gists and allows you to insert their contents into the current message">
           <bt:Override Locale="es-ES" Value="Muestra una lista de sus Gists y permite insertar su contenido en el mensaje actual"/>
        <bt:String id="argusLong_String_5" DefaultValue="Where is this used?" />



1 Reply
Please ignore this question.

For soemreason, I can add a button & panel when reading an email, but not when composing- on localhost - wehn I uplaod to my server all is fine. Sorry to have troubled you.