format.getPhoneNumberFormatter(options)
The content in this help topic pertains to SuiteScript 2.x.
Method Description |
Creates a format.PhoneNumberFormatter object to format phone numbers to strings. |
Returns |
Object |
Supported Script Types |
Client and server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
10 units |
Module |
|
Methods and Properties |
|
Since |
2019.2 |
Parameters
The options
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
|
enum |
required |
Phone number format type. Must be a value from format.PhoneNumberFormatType. |
2020.2 |
These parameters are mutually exclusive, you can always use only one of them.
Errors
Error Code |
Thrown If |
---|---|
SSS_INVALID_FORMAT_TYPE |
An invalid value is specified for the |