Search code examples
outlookoutlook-addinoffice-addinsoutlook-web-addins

Outlook Addin does not work in shared mailbox in new Outlook on Mac


I developed a small Outlook plugin that is supposed to be used in a shared mailbox.

The problems are the following:

In the "new" Outlook for mac it can only be opened one time, in the shared Mailbox. After that the Addin is greyed out.

In Outlook on the web the pinning feature can not be used in the shared mailbox

The details:

I added

<DesktopFormFactor>
  <SupportsSharedFolders>true</SupportsSharedFolders>

to the manifest, to make it work within a shared mailbox.

One of our users uses a mac and switched to "new Outlook". When he is in the shared mailbox the Addin can be opened once. (Right after opening the personal mailbox) After that the Icon is greyed out and it cant be opened again (only when switching to the personal mailbox and back) . When hovering over the Addin, this message appears:

enter image description here (Changed the icon, title and email)

In the "old" Outlook for Mac it does seem to work, but the user does not want to use it.

At first i thought maybe it has something to do with the WebApplicationInfo and its authorization but it shows the same behavior without this part.

Interestingly it does also work for a while after a fresh installation. If I freshly add the manifest.xml it can be used for one or two sessions.

In the web client a different problem occurs, the Addin can be loaded in the shared mailbox but the pinning does not work.

Here is the full manifest (without urls and names), I am aware that it does not include a version for the older Outlook versions. But our user base is very limited and everybody uses the latest client.

    <?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>{{ID}}</Id>
    <Version>1.0.0.0</Version>
    <ProviderName>{{Provider}}</ProviderName>
    <DefaultLocale>en-US</DefaultLocale>
    <DisplayName DefaultValue="{{Name}"/>
    <Description DefaultValue="{{Description}"/>
    <IconUrl DefaultValue="https://test.app/Icon"/>
    <HighResolutionIconUrl DefaultValue="https://test.app/Icon2"/>
    <SupportUrl DefaultValue="https://test.app/Help"/>

    <AppDomains>
        <AppDomain>https://test.app/</AppDomain>
    </AppDomains>
    <Hosts>
        <Host Name="Mailbox"/>
    </Hosts>
    <Requirements>
        <Sets DefaultMinVersion="1.1">
            <Set Name="Mailbox" MinVersion="1.1"/>
        </Sets>
    </Requirements>
    <FormSettings>
        <Form xsi:type="ItemRead">
            <DesktopSettings>
                <SourceLocation DefaultValue="https://test.app/pane"/>
                <RequestedHeight>250</RequestedHeight>
            </DesktopSettings>
        </Form>
    </FormSettings>
    <Permissions>ReadWriteMailbox</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">
        <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>
                        <SupportsSharedFolders>true</SupportsSharedFolders>

                        <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"/>
                                            <SupportsPinning>true</SupportsPinning>

                                        </Action>
                                    </Control>
                                </Group>
                            </OfficeTab>
                        </ExtensionPoint>


                    </DesktopFormFactor>
                </Host>
            </Hosts>
            <Resources>
                <bt:Images>
                    <bt:Image id="Icon.16x16" DefaultValue="https://test.app/Icon1"/>
                    <bt:Image id="Icon.32x32" DefaultValue="https://test.app/Icon2"/>
                    <bt:Image id="Icon.80x80" DefaultValue="https://test.app/Icon3"/>
                </bt:Images>
                <bt:Urls>
                    <bt:Url id="Taskpane.Url" DefaultValue="https://test.app/Pane"/>
                </bt:Urls>
                <bt:ShortStrings>
                    <bt:String id="GroupLabel" DefaultValue=""/>
                    <bt:String id="TaskpaneButton.Label" DefaultValue=""/>
                </bt:ShortStrings>
                <bt:LongStrings>
                    <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Opens a pane displaying all available properties."/>
                </bt:LongStrings>
            </Resources>
            <WebApplicationInfo>
                <Id>{{ID}}</Id>
                <Resource>{{URI}}</Resource>
                <Scopes>
                    <Scope>offline_access</Scope>
                    <Scope>openid</Scope>
                    <Scope>profile</Scope>
                    <Scope>Mail.ReadWrite.Shared</Scope>
                    <Scope>Mail.Send.Shared</Scope>
                    <Scope>User.Read</Scope>
                </Scopes>
            </WebApplicationInfo>
        </VersionOverrides>
    </VersionOverrides>

</OfficeApp>

Solution

  • Addins support for group shared mailbox is not yet supported on Outlook on Web. This is mentioned in our documentation here. We track Outlook add-in feature requests on our Tech Community Page. Please submit your request there and choose the appropriate label(s). Feature requests on Tech Community are considered, when we go through our planning process