Phone cleanser
Learn about the different options available to configure the phone cleanser.
Cleanser Name - PhoneCleanserFn
Description
phone number
, country code
, and type
and
produces many attributes with the ReltioCleanser
crosswalk, as per the output
mapping.The phone cleanser works in the same way as the existing custom phone cleanser (configured in the S3).
Mapping input and output
The input and output mapping of the phone cleanser can be configured in two ways.
- Implementation 1 works only when the phone address is configured at the first nested attribute. This implementation doesn’t work when configured at deeper nested levels. However, implementation 2 works when configured at any nested level.
- Implementation 1 makes it compulsory to use the nested attribute name as
Phone
. The cleanser doesn’t work if the name is changed. However, for implementation 2, you can use any name for the nested attribute.
Options for phone cleanser
Key | Allowed Values | Description |
---|---|---|
licensedCountryCodes | ISO3166-2 country codes with a semicolon (;) separator. For example, US;IN;RU | This option is enabled in the phone cleanser configuration to support only a
few countries. If no value is mentioned, the phone number is returned as given.
You can use
|
returnDataForInValidStatus | The following options are available:
| The returnDataForInValidStatus option is considered when
ValidationStatus is INVALID . The following
points explain how the returnDataForInValidStatus option works:
|
enhanceCleansing | The following options are available:
| The enhanceCleansing option is active only when
ValidationStatus is INVALID . The following
points explain how the enhanceCleansing option works:
|
formatType | The following format types are supported:
| Use this option to determine the output format of the phone number. The default
format is NATIONAL . For example:
|
L3 configuration
Map the PhoneCleanserFn
for any entity in your L3 configuration as per the chosen implementation process.
Input cleanse attributes
Field name | Required |
---|---|
Number | Yes |
CountryCode | No |
Type | No |
Output cleanse fields
Field name | Required |
---|---|
Number | Yes |
CountryCode | No |
Type | No |
Extension | No |
LineType | No |
FormatMask | No |
AreaCode | No |
GeoCountry | No |
GeoArea | No |
DigitCount | No |
LocalNumber | No |
FormattedNumber | Yes |
ValidationStatus | Yes |
CarrierInfo | No |
FormattedNumber-NATIONAL | No |
FormattedNumber-INTERNATIONAL | No |
FormattedNumber-E164 | No |
FormattedNumber-RFC3966 | No |
Example to understand the input and output fields
Options | Input Fields | Output Fields |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ "licensedCountryCodes" : "RU;IN" } |
|
|
{ "formatType" : "E164" } |
|
|