Context.mailbox property

Gets the mailbox object that provides access to API members specifically for Outlook add-ins.

Hosts: Outlook
Available in Requirement set Mailbox
Last changed in 1.0
var outlookOm = Office.context.mailbox;

Return value

The mailbox object.


The following line of code access the item object of the JavaScript API for Office.

// Access the Item object.
var item = Office.context.mailbox.item;

Support details

A capital Y in the following matrix indicates that this method is supported in the corresponding Office host application. An empty cell indicates that the Office host application doesn't support this method.

For more information about Office host application and server requirements, see Requirements for running Office Add-ins.

Office for Windows desktop Office Online (in browser) Outlook for Mac
Outlook Y Y Y
Available in requirement sets Mailbox
Minimum permission level Restricted
Add-in types Outlook
Library Office.js
Namespace Office

Support history

Version Changes
1.0 Introduced