OfficeDev / OfficeDev/Office-Add-in-samples

office.context.mailbox.item issue

Open
#925 0 comments 0 reactions 1 assignee View on GitHub

@aafvstam is already working on this.

Since Jan 22, 2025.

area: outlook bug Needs: attention :wave:
Dominant language
JavaScript
Stars
1k
Forks
952
Avg merge
20h 36m
Merged PRs (30d)
32

Description

Good day

When I run your default code, I receive an issue relating to the context:

const item = Office.context.mailbox.item;

    if (item === null) {
        console.error(`Index.razor.js(getEmailData): Unexpected - could not get reference to Office.context.mailbox.item`);
        console.error(`Index.razor.js(getEmailData) Catch Exception: ${err}`);

        return { Subject: "No email item" };
    }

Can you please assist.

Kind regards

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.