PhoneNumber object (JavaScript API for Office)

apps for Office

Represents a phone number identified in an item.

Last modified: March 04, 2015

Hosts:Outlook

App type: Mail

Available in requirement sets

Mailbox

Last changed in Mailbox

1.0

Applicable Outlook modes

Read

See all support details

Office.context.mailbox.item.getEntities().phoneNumbers;

Properties

Property name

Outlook mode

Description

Introduced in

originalPhoneString

Read

Gets the text that was identified as a phone number.

Version 1.0

phoneString

Read

Gets the phone number.

Version 1.0

type

Read

Gets a string that identifies the type of phone number (work, home, mobile, other)

Version 1.0

The list of phone numbers in an email message is returned in the phoneNumbers property of the Entities object that is returned when you call the getEntities method on the selected item.

A checkmark (√) in the following table indicates that this property is supported in the corresponding Outlook host application. An empty cell indicates that the Outlook host application doesn't support this property.

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

Supported hosts, by platform

Office for Windows desktop

Office for Windows RT

Office Online
(in browser)

OWA for Devices

Office for Mac

Outlook

√ (Read mode only)

Available in requirement sets

Mailbox

Minimum permission level

Restricted

App types

Mail

Library

Office.js

Namespace

Office

Version

Changes

1.0

Introduced

Show:
© 2015 Microsoft