Office.context property (JavaScript API for Office v1.1)

JavaScript API for Office v1.1

Gets the Context object that represents the runtime environment of the app and provides access to the top-level objects of the API, such as the Document and Mailbox objects.

Last modified: June 12, 2014

var myDocument = Office.context.document;

In version 1.1 of Office.js, you can use the context property to return a Document object that represents the current database in content apps for Access.

App types

Content apps, Mail apps, Task pane apps

Supported clients

Access app for SharePoint, Excel 2013, Excel 2013 SP1, Excel 2013 RT, Excel Online, Outlook 2013, Outlook 2013 SP1, Outlook 2013 RT, Outlook Web App, OWA for Devices, PowerPoint 2013, PowerPoint 2013 SP1, PowerPoint 2013 RT, Project 2013, Project 2013 SP1, Word 2013, Word 2013 SP1, Word 2013 RT





© 2014 Microsoft