How is phone numbers validated in Business Engine?
This article describes the logic applied to phone number validation and formatting within the system for both mobile and landline numbers.
Validation & Formatting Rules
-
Validation Scope:
Both mobile and landline phone numbers are validated and stored in an unformatted state. -
Automatic Formatting:
As soon as a valid phone number is detected, the system applies formatting. This formatting is for display purposes only; the number is stored unformatted in the database. -
Country-Specific Behavior:
-
If the number originates from the same country as the current environment, the country code is not required for validation.
-
International numbers must include a country code to be considered valid.
-
-
Text Messaging Logic:
-
When text messaging is enabled:
-
The system prepends
+1
to the stored number (for applicable regions), but this prefix is not shown in the user interface.
-
-
When text messaging is disabled:
-
The
+1
prefix is not stored, except in the case of international numbers, where the full international format is retained.
-
-