Office.LocationDetails interface

Represents a location. Read-only.

Remarks

[ API set: Mailbox 1.8 ]

Minimum permission level: read item

Applicable Outlook mode: Compose or Read

Examples

Office.context.mailbox.item.enhancedLocation.getAsync(callbackFunction);

function callbackFunction(asyncResult) {
    asyncResult.value.forEach(function (place) {
        console.log("Display name: " + place.displayName);
        console.log("Type: " + place.locationIdentifier.type);
        if (place.locationIdentifier.type === Office.MailboxEnums.LocationType.Room) {
            console.log("Email address: " + place.emailAddress);
        }
    });
}

Properties

displayName

The location's display name.

emailAddress

The email address associated with the location. Only locations of type Room have an email address.

locationIdentifier

The LocationIdentifier of the location.

Property Details

displayName

The location's display name.

displayName: string;

Property Value

string

emailAddress

The email address associated with the location. Only locations of type Room have an email address.

emailAddress: string;

Property Value

string

locationIdentifier

The LocationIdentifier of the location.

locationIdentifier: LocationIdentifier;

Property Value