format.getPhoneNumberParser(options)
The content in this help topic pertains to SuiteScript 2.x.
Method Description |
Parses a phone number from a string. Returns a format.PhoneNumberParser object. |
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 |
optional |
Parser point of reference. Specify this value if the phone number is not in international formatl. If specified, value must be a format.Country value. If a value is not specified, the company country is used. |
2020.2 |
These parameters are mutually exclusive, you can always use only one of them.
Errors
Error Code |
Thrown If |
---|---|
SSS_INVALID_COUNTRY_ID |
An invalid value is specified for the |