OfficeDev / OfficeDev/Office-Add-in-samples
office.context.mailbox.item issue
Open
@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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.