Office.LocationDetails interface
Represents a location. Read-only.
Minimum permission level: read item
Applicable Outlook mode: Compose or Read
TypeScript
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);
}
});
}
display |
The location's display name. |
email |
The email address associated with the location. Only locations of type |
location |
The |
The location's display name.
TypeScript
displayName: string;
Property Value
string
The email address associated with the location. Only locations of type Room
have an email address.
TypeScript
emailAddress: string;
Property Value
string
The LocationIdentifier
of the location.
TypeScript
locationIdentifier: LocationIdentifier;
Property Value
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins feedback
Office Add-ins is an open source project. Select a link to provide feedback: