What's wrong with my manifest?

Brass Contributor

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"?>
<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">

  <!-- 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. -->
  <Id>a496311c-9850-48ef-8afe-06961c8a3954</Id>

  <!--Version. Updates from the store only get triggered if there is a version change. -->
  <Version>1.0.0.0</Version>
  <ProviderName>Our magnificent octopus</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <!-- 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. -->
  <AppDomains>
    <AppDomain>localhost</AppDomain>
    <AppDomain>AppDomain2</AppDomain>
    <AppDomain>AppDomain3</AppDomain>
  </AppDomains>
  <!--End Basic Settings. -->

  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://localhost:3000/index.html"/>
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
  </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" />

         <!-- 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"/>
                    <Supertip>
                      <Title resid="argusTitle"/>
                      <Description resid="argusDesc"/>
                    </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="argusPaneUrl" />
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          
          
          
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <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:Images>

      <bt:Urls>
        <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:Urls>

      <bt:ShortStrings>
        <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>

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

      <bt:LongStrings>
        <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>
        
        <bt:String id="argusLong_String_5" DefaultValue="Where is this used?" />

      </bt:LongStrings>

      </Resources>
  </VersionOverrides>
</OfficeApp>

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.