Why is it unnecessary to invoke Office.onReady() for event based addins? #4932
Labels
Area: Outlook
Feedback on Outlook content
Needs: attention 👋
Waiting on Microsoft to provide feedback
Type: doc request
Request for new documentation or updates/enhancements to existing documentation
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:
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?
The text was updated successfully, but these errors were encountered: