IdentityNow Transforms - E164 Phone

IdentityNow Transforms - E164 Phone

Overview

The e164phone transform is a transform to convert an incoming phone number string into an E164-compatible number.

Other Considerations

  • If the input string to the transform does not represent a valid phone number, the transform will return null.

 

Transform Structure

The transform for e164phone is quite simple. All that is necessary is the transform's type and name attributes, as described in the below example:

Example

{
	"type": "e164phone",
    "name": "Test E164Phone Transform"
}

Attributes

  • Required Attributes

    • type - This must always be set to e164phone
    • name - This is a required attribute for all transforms, and represents the name of the transform as it will appear in the UI's dropdowns
  • Optional Attributes

    • requiresPeriodicRefresh - A true or false value that indicates whether the transform logic should be re-evaluated every evening as part of the identity refresh process.
    • input - This is an optional attribute that can explicitly define the input data which will be fed into the transform logic. If input is not provided, the transform will take its input from the source and attribute combination configured via the UI.
    • defaultRegion - This is an optional attribute that can be used to define the region of the phone number to format into. If defaultRegion is not provided, it will take US as the default country. The format of the country code should be in ISO 3166-1 alpha-2 format

 

Examples

Example 1

Input: "512-777-2222"

Output: "+15124592222"

{
    "attributes": {
        "input": {
            "attributes": {
                "value": "512-777-2222"
            },
            "type": "static"
        }
    },
	"type": "e164phone",
    "name": "Test E164Phone Transform"
}

Example 2

Input: "779.284.2727"

Output: "+17792842727"

{
    "attributes": {
        "input": {
            "attributes": {
                "value": "779.284.2727"
            },
            "type": "static"
        }
    },
	"type": "e164phone",
    "name": "Test E164Phone Transform"
}

Example 3

Input: "0412345678"

Country: "AU"

Output: "+61412345678"

{
    "attributes": {
        "input": {
            "attributes": {
                "value": "0412345678"
            },
            "type": "static"
        },
        "defaultRegion": "AU"
    },
	"type": "e164phone",
    "name": "Test E164Phone Transform"
}

 

References

Version history
Revision #:
6 of 6
Last update:
‎Dec 09, 2021 05:24 PM
Updated by: