Skip to content

office.context.mailbox.item issue #925

@LukeDAnalyte

Description

@LukeDAnalyte

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions