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
641 stars 92 forks source link

ExtendedOverrides is not a valid child element of OfficeApp #4405

Closed SamuelTrew closed 2 weeks ago

SamuelTrew commented 3 weeks ago

Provide required information needed to triage your issue

ExtendedOverrides is not a valid child element of OfficeApp in the namespace of 'http://schemas.microsoft.com/office/appforoffice/1.1"

Your Environment

Expected behavior

I follow the steps outlined here and I can add an field to my manifest.xml.

Current behavior

When I go to add it (or validate it), it fails. Validating gives the following error:

XML Schema Validation Error: Error found during XML Schema validation.

- Details: The element 'officeApp in namespace 'http://schemas.microsoft.com/office/appforoffice/1.1' has invalid child element 'ExtendedOverrides' in namespace 'http://schemas.microsoft.com/office/appforoffice/1.1'. List of possible elements expected: any element in namespace 'http://www.w3.org/2000/09/xmldsige*. - Line: 100 Column: 4

Steps to reproduce

  1. Add field below

  2. npm run validate

  3. Should fail

Provide additional details

My VersionOverrides of the following format:

<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">
   ... 
  </VersionOverrides>
</VersionOverrides>

with the ExtendedOverrides follows:

<VersionDverrides xmlns=http://schemas.microsoft.com/office/mailappversionoverrides xsi:type-"VersionOverridesV1_8">
  <VersionOverrides xmlns=http://schemas.microsoft.com/office/mailappversionoverrides/1.1 xsi:type="VersionOverridesV1_1">
   ... 
  </VersionOverrides>
</VersionOverrides> <ExtendedOverrides Url-"(APP_URL_OUTLOOK}/shortcuts.json"></ExtendedOverrides

Context

I am trying to add keyboard shortcuts to my Outlook Add-in to open and close the taskpane, just as in the examples given.

Useful logs

Error #1: XML Schema Validation Error: Error found during XL Schema validation.
 - Details: The element "OfficeApp' in namespace 'http://schemas.microsoft.com/office/appforoffice/1.1' has invalid child element 'ExtendedOverrides' in namespace 'http://schemas.microsoft.com/office/appforoffice/1.1'. List of possible elements expected: any element in namespace 'http://www.w3.org/2008/09/xmldsiga". 
- Line: 100 Column: 4

Error #2:

XML Schema Violation: Your manifest does not adhere to the current set of XML schema definitions for Office Add-in manifests. The manifest is not valid.
neprasad-microsoft commented 2 weeks ago

Hi @SamuelTrew Keyboard shortcuts are not supported on Outlook according to this doc -https://learn.microsoft.com/en-us/office/dev/add-ins/design/keyboard-shortcuts . It is only supported on Excel.

SamuelTrew commented 2 weeks ago

@neprasad-microsoft Ah missed that part, thank you.

Is there any plan to add support for them do you know?

Thank you.

neprasad-microsoft commented 2 weeks ago

Hi @SamuelTrew Unfortunately since this is a new feature, we cannot help you on this forum. 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.

SamuelTrew commented 2 weeks ago

Thank you!

denis-kalinin commented 6 days ago

There is an ambiguity in the documentation. Although ExtendedOverride is in the XML schema, it is absent in the Outlook manifest docs.