Skip to content
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

Office.context.mailbox.item is undefined when the reading pane is disabled in Outlook #5391

Open
CodeCube0 opened this issue Feb 14, 2025 · 4 comments
Assignees
Labels
Area: Outlook Issue related to Outlook add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback Possible-Solution Similar-Issue

Comments

@CodeCube0
Copy link

Description:

I'm experiencing an issue with the Office API in Outlook. If the reading pane is disabled, Office.context.mailbox.item is undefined, preventing the add-in from functioning correctly.

Steps to reproduce:

  • Open Outlook.
  • Disable the reading pane (View -> Layout -> Reading Pane -> Off).
  • Open an email and try to access Office.context.mailbox.item from an add-in.
  • The object is undefined.

Expected behavior:

Office.context.mailbox.item should be populated regardless of the reading pane's state.

Actual behavior:

If the reading pane is disabled, Office.context.mailbox.item is undefined, making it impossible to interact with the email content.

Additional Notes:

It seems that the object is only populated when the reading pane is enabled. It would be helpful to have a way to access email data even when the reading pane is disabled.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Feb 14, 2025
Copy link

Here are some similar issues that might help you. Please check if they can solve your problem.


Possible solution (Extracted from existing issue, might be incorrect; please verify carefully)

Solution 1:

The issue is by design - Office.context.mailbox.item is expected to be undefined when the reading pane is turned off. Without the Reading Pane, you are not able to fetch the item details.

Reference:

Solution 2:

Currently, the feature of supporting add-ins when the reading pane is OFF is not a part of the product. You can submit a feature request on the Tech Community Page for consideration in future planning.

Reference:

Powered by issue-sentinel

@exextoc exextoc added Area: Outlook Issue related to Outlook add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels Feb 14, 2025
@CodeCube0
Copy link
Author

I find it absolutely unacceptable that Office.context.mailbox.item is designed to be undefined when the reading pane is turned off. This completely breaks the usability of add-ins in a scenario where users might prefer to disable the reading pane for workflow reasons.

Forcing users to enable the reading pane just to access basic email data makes no sense and severely limits the flexibility of Outlook add-ins. Instead of providing a real solution, you’re just saying, "That’s how it works by design", which is not an acceptable answer.

At the very least, there should be an alternative method to retrieve the item details when the reading pane is off. This is a major oversight and should be addressed rather than dismissed as an intentional limitation.

I strongly urge Microsoft to reconsider this and provide a proper way for add-ins to function regardless of the reading pane's status.

@mobisw-msft
Copy link

@CodeCube0 ,

We are unable to reproduce this issue.

  1. Can you please help us identify which Outlook client (Outlook for Web, Outlook for Windows Classic, new Outlook for Windows or Outlook for Mac) you are facing this issue in?
  2. Are you using an add-in that runs in SupportsNoItemContext or in Multiple Selection mode, or are you using a MessageRead add-in?

@mobisw-msft mobisw-msft added Needs: author feedback Waiting for author (creator) of Issue to provide more info and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels Feb 18, 2025
@CodeCube0
Copy link
Author

  1. I am experiencing the issue in "Outlook for Windows Classic."
  2. I am running the add-in with "SupportsNoItemContext" set to true. At the very least, I would like to know when the reading pane is open or closed so that I can inform the user with a warning within the add-in.

@mobisw-msft

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Needs: author feedback Waiting for author (creator) of Issue to provide more info labels Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Outlook Issue related to Outlook add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback Possible-Solution Similar-Issue
Projects
None yet
Development

No branches or pull requests

3 participants