1
votes

We're trying to install an add-in that makes use of the pinnable taskpane action introduced in version overrides 1.1.

The error reads "This app can't be installed. The manifest file doesn't conform to the schema definition. The element 'Action' in namespace 'http://schemas.microsoft.com/office/mailappversionoverrides/1.1' has invalid child element 'SupportsPinning' in namespace 'http://schemas.microsoft.com/office/mailappversionoverrides/1.1..."

The Exchange server version we're on is Exchange 2016 CU1.

Has anyone encountered this scenario before?

Sample of the manifest below...

<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
        xsi:type="VersionOverridesV1_0">

    <Requirements>
        <bt:Sets DefaultMinVersion="1.4">
            <bt:Set Name="Mailbox" />
        </bt:Sets>
    </Requirements>

    <Hosts>
        <Host xsi:type="MailHost">

            <DesktopFormFactor>
                <!-- Message read -->
                <ExtensionPoint xsi:type="MessageReadCommandSurface">
                    <OfficeTab id="TabDefault">
                        <Group id="msgreadTabMessage.grp1">
                            <Label resid="groupLabel" />

                            <Control xsi:type="Button" id="msgreadTabMessage.grp1.btnView">
                                <Label resid="buttonLabel" />
                                <Supertip>
                                    <Title resid="superTipTitle" />
                                    <Description resid="superTip" />
                                </Supertip>
                                <Icon>
                                    <bt:Image size="16" resid="icon1_16x16" />
                                    <bt:Image size="32" resid="icon1_32x32" />
                                    <bt:Image size="80" resid="icon1_80x80" />
                                </Icon>
                                <Action xsi:type="ShowTaskpane">
                                    <SourceLocation resid="taskPaneUrl" />
                                </Action>
                            </Control>
                        </Group>
                    </OfficeTab>
                </ExtensionPoint>
            </DesktopFormFactor>
        </Host>
    </Hosts>                    

    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
        <Hosts>
            <Host xsi:type="MailHost">
                <DesktopFormFactor>
                    <!-- Message read -->
                    <ExtensionPoint xsi:type="MessageReadCommandSurface">
                        <OfficeTab id="TabDefault">
                            <Group id="msgreadTabMessage.grp1">
                                <Label resid="groupLabel" />

                                <Control xsi:type="Button" id="msgreadTabMessage.grp1.btnView">
                                    <Label resid="buttonLabel" />
                                    <Supertip>
                                        <Title resid="superTipTitle" />
                                        <Description resid="superTip" />
                                    </Supertip>
                                    <Icon>
                                        <bt:Image size="16" resid="icon1_16x16" />
                                        <bt:Image size="32" resid="icon1_32x32" />
                                        <bt:Image size="80" resid="icon1_80x80" />
                                    </Icon>
                                    <Action xsi:type="ShowTaskpane">
                                        <SourceLocation resid="taskPaneUrl" />
                                        <SupportsPinning>true</SupportsPinning>
                                    </Action>
                                </Control>
                            </Group>
                        </OfficeTab>
                    </ExtensionPoint>
                </DesktopFormFactor>
            </Host>
        </Hosts>
    </VersionOverrides>
</VersionOverrides>
3

3 Answers

2
votes

According to MSDN blog: Pinnable Taskpane in Outlook 2016 new VersionOverrides version 1.1 has to be added to an existing version 1.0. Your example manifest completely missing version 1.0 overrides. Please follow the example command-demo-manifest.xml to make new pinnable feature work.

EDIT: To clarify with VersionOverrides element, when implementing multiple versions, please refer to VersionOverrides element: Implementing multiple versions

2
votes

Slava's answer is correct but could use a bit more explanation. The key line from the documentation is:

"The child VersionOverrides element does not inherit any values from the parent."

In your example schema you replicated the <hosts> element alone. In order to work properly, it must also replicate the <requirements> element from it's parent.

2
votes

SupportsPinning was introduced in Exchange 2016 CU4 and that is why it does not work in CU1 for you.