IsPhoneNumber
Returns a true
or false
result to indicate whether the string value passed in is a valid phone number. This function uses the same phone number validation as the SMS components of the application.
IsPhoneNumber(1)
Ordinal | Type | Description |
---|---|---|
1 | string | Required. The phone number to evaluate for validity. |
If the phone number 555-555-5555 is valid, then the function listed next returns a true
value. Otherwise, false
is returned. For example, a true
value is returned for the phone number 555-555-5555.
This function, IsPhoneNumber()
, falsely returns true
for some phone numbers with a 922
and 926
prefix. When a false number is processed as true
, it causes the entire batch to fail for a call.