Email and Telephone Validation: Phone Number Standardization

Phone number standardization can format phone numbers on your rows to improve your data quality, making it easier to analyse your data.

Phone Number Standardization Setup

From the “Phone Validation” configuration page in the “Data8 Validation Configuration” model driven app, there is an option to enable phone number standardization.

Enabling this will expose some options to customize how to format the phone number.

More information on each of these options:

Default Format Type

The format of the returned phone number. This can be one of the following values:

  • International – the number is presented back with full international dialling code
  • National – the number is presented back without the international dialling code but with the full area code
  • Local – the number is presented back with only the local part

Any telephone numbers for these countries will be formatted using the DifferentFormatType format instead of the DefaultFormatType. If this is not specified it will default to the same value as the defaultCountry parameter. To format all telephone numbers according to the DefaultFormatType regardless of country, do not select any countries. If a country does not exist in the list of options, a new country can be added by typing the country code (without leading + or 00) and clicking “Add”.

The format the telephone number should be returned in if it is from a country listed in DifferentFormatCountries. This can be one of the same set of values as DefaultFormatType.

The TelephoneNumber field in the result will be formatted according to our standard country-specific rules. This option allows you to override those formats. Custom formats are specified as a semi-colon separated list of <countrycode>=<format>, where <countrycode> is the international dialling code and <format> is the format to use for telephone numbers in that country.

Formats are specified using the following special characters. Examples show the result of the formatting character based on the input telephone number +441513554555 extension 1234.

CharacterDescriptionExample
0The next available digit of the telephone number. This will not include the international dialling code for the country, or the trunk dialling prefix1
iThe international dialling code for the country44
tThe trunk dialling prefix required for long distance calls within the country.0
aThe area code of the telepone number. This will not include the trunk dialling prefix151
lThe local part of the telephone number3554555
xThe extension number1234

Any other characters will be treated as literal strings. The backslash character is used as an escape character, so \i will output i and \\ will output \.

If there are more numbers in the telephone number than are output by the specified format string, the additional numbers will be appended to the result to ensure no data is lost.

Indicates if telephone numbers should be formatted according to the country-specific rules for its particular country with spaces, punctuation etc. If this is set to false, numbers are formatted according to ITU international standard formatting.

Join the Conversation

Receive the latest news, views and hot topics directly in your inbox! Sign up below

Follow us on social media

Data8
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.