Message.subject property (JavaScript API for Office v1.1)

JavaScript API for Office v1.1

Gets or sets the description that appears in the subject field of an email message.

Last modified: September 25, 2014

Applicable Outlook modes

Compose or read

Available in requirement sets

Mailbox

Office.context.mailbox.item.subject

Compose mode

A Subject object that provides methods that are used to get and set the subject of the message.

Read mode

A string that contains the subject of the message.

The subject property gets or sets the entire subject of the message, as sent by the email server. In read mode, use the normalizedSubject property to get the subject minus any leading prefixes such as "RE:" and "FW:".

New functionality in version 1.1

In compose mode apps for Office, the subject field is a Subject object that provides the getAsync and setAsync methods to get and set the subject value.

App types

Mail app

Supported clients

Outlook 2013, Outlook 2013 SP1, Outlook 2013 RT, Outlook Web App, and OWA for Devices

Library

Office.js

Namespace

Office

Show:
© 2014 Microsoft