OnNewMessageCompose not called

Maxime P 11 Reputation points
2022-03-22T19:46:32.983+00:00

Hi all,

I was working on an Outlook Add-ins to insert a signature. All of the sudden, it stops working on my computer. From what I can see, the function defined in the manifest is never called when a new message is composed. In fact, the function is called in Outlook web, but for Outlook desktop, it works for some, and doesn't work for others.

Here is the definition in the manifest.xml

    <ExtensionPoint xsi:type="LaunchEvent">
      <LaunchEvents>
        <LaunchEvent Type="OnNewMessageCompose" FunctionName="checkSignature" />
        <LaunchEvent Type="OnNewAppointmentOrganizer" FunctionName="checkSignature" />
      </LaunchEvents>
      <SourceLocation resid="Autorun" />
    </ExtensionPoint>

Can you tell me why this "checkSignature()" function is never called?

Or do you have any clue on how to debug this? I can't open DevTools until I open the Add-ins pane, but it is too late to check the action code.

Thanks in advance.

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,589 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
4,949 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Maxime P 11 Reputation points
    2022-03-24T18:33:11.83+00:00

    It turns out that a call to localStorage was throwing an exception, which look like the function wasn't called at all.

    0 comments No comments