OfficeDev/office-js

OnNewMessageCompose not working on desktop

Closed this issue · 4 comments

Provide required information needed to triage your issue

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: ____PC desktop
  • Host [Excel, Word, PowerPoint, etc.]: ____Outlook
  • Office version number: ____Microsoft® Outlook® LTSC MSO (16.0.14332.20696) 64-bit
  • Operating System: ____Windows
  • Browser (if using Office on the web): ______

Expected behavior

I am trying to add OnNewMessageCompose event this is working file on web outlook but not working on desktop outlook I want this will work on all platforms.

Current behavior

I am trying to add OnNewMessageCompose event this is working file on web outlook but not working on desktop outlook.

Link to live example(s)

  1. this is my live manifest when I install this from desktop the add-in is not showing in desktop outlook same manifest working on web outlook

Useful logs

  • work on desktop

Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.

Hi @exextoc

I have shared my online manifest please check it using this manifest my add-in is not showing on windows desktop but same on web working correctly

Ohh! add-in is showing on read mode. In my manifest I am using ExtensionPoint `MessageComposeCommandSurface

Hi @exextoc any Update?

There are a couple of things happening here.

Your version is the 2021 LTSC version of Outlook. The Max version it supports is 1.9: Link

Launch Events need 1.10 to be supported: https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/autolaunch

In your manifest in version overrides you specified the min version as 1.10.

So what is happening is your version of Outlook doesn't support 1.10, and is falling ALL the way back to the section described in:

  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://aamirhusnain.github.io/chillisign/taskpane.html"/>
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>

So you cannot use LaunchEvents in that version of office. If you want to support LaunchEvents in deskop, you will need to upgrade.

If you would like to fail more gracefully in older versions of Outlook, you can either adjust the MinVersion from 1.10 to 1.9, and then the MessageComposeCommandSurface will start working. (but the LaunchEvents won't)

You could instead specify a VersionOverrides 1.0 section with a lower min version, that will fall back on if 1.1 min version is not supported.