Skip to content

Why is it unnecessary to invoke Office.onReady() for event based addins? #4932

Open
@LiamWarnes

Description

I had a smart alert in my add in that was not working in Outlook Classic because code was being invoked inside Office.onReady(). This is in accordance with the documentation provided here:

image

https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/autolaunch

This is a little confusing because it conflicts with guidance from https://learn.microsoft.com/en-us/office/dev/add-ins/develop/initialize-add-in that suggests onReady is necessary to invoke Office JS API's. Clearly, from the smart alert example provided here https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough?tabs=jsonmanifest office JS API's are being invoked without predecessor of onReady().

Could you please provide extended clarification in the top documentation as to why it is unnecessary to invoke onReady in this context?

Metadata

Assignees

Labels

Area: OutlookFeedback on Outlook contentNeeds: attention 👋Waiting on Microsoft to provide feedbackType: doc requestRequest for new documentation or updates/enhancements to existing documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions