OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
677 stars 95 forks source link

Add in installed does not appear in classic Outlook #4504

Closed mabel-copilot closed 4 months ago

mabel-copilot commented 5 months ago

Dear all,

We are having an issue regarding to a custom addin.

We have developed a custom addin for Outlook, and we have installed it through the admin web and it appears and it works correctly in new version also in Outlook web , but does not work at classic version. It appears as an installed app in desktop Outlook (manage apps panel) but never works as a command in the emails, never appear the corresponding button.

310504941-774d7e5a-4a83-4c3f-aa2e-d9cd9fa5ddfc

Thank in advance

PD: Please, find below the manifest

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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">
  <Id>f4efc78a-5b36-46eb-8d83-6fcff0203469</Id>
  <Version>2.0.0.0</Version>
  <ProviderName>Aelca</ProviderName>
  <DefaultLocale>es-ES</DefaultLocale>
  <DisplayName DefaultValue="Gestor de metadatos"/>
  <Description DefaultValue="Complemento para la gestión de correos no procesados automaticamente."/>
  <IconUrl DefaultValue="https://.../Headerlogo.png"/>
  <HighResolutionIconUrl DefaultValue="https://.../Headerlogo.png"/>
  <SupportUrl DefaultValue="https://www.....es/help"/>
  <AppDomains>
    <AppDomain>https://www.aelca.es</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://aelcadcstorage.z6.web.core.windows.net/taskpane.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>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.3">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <FunctionFile resid="Commands.Url"/>
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgReadGroup">
                  <Label resid="GroupLabel"/>
                  <Control xsi:type="Button" id="msgReadOpenPaneButton">
                    <Label resid="TaskpaneButton.Label"/>
                    <Supertip>
                      <Title resid="TaskpaneButton.Label"/>
                      <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>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16x16" DefaultValue="https://...Headerlogo.png"/>
          <bt:Image id="Icon.32x32" DefaultValue="https://...Headerlogo.png"/>
          <bt:Image id="Icon.80x80" DefaultValue="https://...Headerlogo.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="Commands.Url" DefaultValue="https://.../commands.html"/>
          <bt:Url id="Taskpane.Url" DefaultValue="https://.../taskpane.html"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="GroupLabel" DefaultValue="Gestor Documental"/>
          <bt:String id="TaskpaneButton.Label" DefaultValue="Mostrar metadatos"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Gestionar metadatos"/>
          <bt:String id="ActionButton.Tooltip" DefaultValue="Mostrar datos del documento."/>
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>

Mabel

mabel-copilot commented 5 months ago

Please, consider the following link as a previous discussion.

https://github.com/OfficeDev/office-js/issues/4226

Thanks in advance

rajjha-msft commented 5 months ago

Is the issue happening on Outlook for web or Win32 client ?

mabel-copilot commented 5 months ago

Good morning!

The issue is for Win 32 client.

Thanks in advance

zhngx1 commented 4 months ago

If you recheck your win32 client after 24 hours, does the add-in show up?

mabel-copilot commented 4 months ago

No... Never

zhngx1 commented 4 months ago

@mabel-copilot If you try to sideload your addin, does it show up on win32 client? Link for sideloading your add-in: https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/sideload-outlook-add-ins-for-testing?tabs=windows-web

Mabelinaa commented 4 months ago

Hi!

@zhngx1 We tried another way to install the custom add in and it worked. At first, we installed it from Admin panel and never worked it. After that, we installed from https://aka.ms/olksideload with success.

Thank you for the support

Best regards

zhngx1 commented 4 months ago

Glad it worked out for you! @Mabelinaa