Skip to content

[Outlook] (initialization) Clarify note applicable to event-based activation and spam-reporting add-ins in classic Outlook on Windows #5231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 16, 2025

Conversation

samantharamon
Copy link
Contributor

Copy link
Contributor

Learn Build status updates of commit 22940cd:

✅ Validation status: passed

File Status Preview URL Details
docs/outlook/autolaunch.md ✅Succeeded View
docs/outlook/onmessagefromchanged-onappointmentfromchanged-events.md ✅Succeeded View
docs/outlook/smart-alerts-onmessagesend-walkthrough.md ✅Succeeded View
docs/outlook/spam-reporting.md ✅Succeeded View

For more details, please refer to the build report.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR clarifies that code inside Office.onReady() and Office.initialize() does not run for event-based activation handlers in classic Outlook on Windows, and updates the last modified dates for several Outlook documentation pages.

  • Standardized guidance about placing startup logic in event handlers rather than in Office.onReady()/Office.initialize()
  • Updated ms.date front-matter across multiple documents
  • Added consistent note across spam-reporting, smart alerts, account-change, and autolaunch docs

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
docs/outlook/spam-reporting.md Clarify Office.onReady()/Office.initialize() behavior and bump ms.date
docs/outlook/smart-alerts-onmessagesend-walkthrough.md Bump ms.date and add note about Office.onReady() not running in handlers
docs/outlook/onmessagefromchanged-onappointmentfromchanged-events.md Bump ms.date and reword note about initialization in event-based activation
docs/outlook/autolaunch.md Bump ms.date, reword note for event handlers, and add standalone guidance
Comments suppressed due to low confidence (1)

docs/outlook/autolaunch.md:88

  • This nested arrow bullet duplicates the new standalone guidance added at line 94—consider removing the nested suggestion under the imports bullet to avoid redundancy.
  -- Add-ins don't run code included in `Office.onReady()` and `Office.initialize`. We recommend adding any startup logic, such as checking the user's Outlook version, to your event handlers instead.

Copy link
Contributor

Learn Build status updates of commit 3f55aa0:

✅ Validation status: passed

File Status Preview URL Details
docs/outlook/autolaunch.md ✅Succeeded View
docs/outlook/onmessagefromchanged-onappointmentfromchanged-events.md ✅Succeeded View
docs/outlook/smart-alerts-onmessagesend-walkthrough.md ✅Succeeded View
docs/outlook/spam-reporting.md ✅Succeeded View

For more details, please refer to the build report.

@samantharamon samantharamon merged commit 5a69fae into main Jun 16, 2025
2 checks passed
@samantharamon samantharamon deleted the samramon-clarify-note branch June 16, 2025 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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