Example
A typical use case for phone number update statement is to create a phone number from Call.Ani. Because Call.Ani is a string, converting it to a phone number and accessing the properties gives flow authors easy access to information about the phone number via properties. This alleviates the need to write your own string parsing code to retrieve the information:
- Variable name: Flow.ClientPhoneNumber
- Value to assign: ToPhoneNumber(Call.Ani)
| Property | Description |
|---|
| Flow.ClientPhoneNumber.uri | Returns the URI for the tel scheme phone number, otherwise a NOT_SET string. |
| Flow.ClientPhoneNumber.e164 | Returns the E.164 formatted string for the tel scheme phone number with a valid E.164 phone number, including dialing code and subscriber number, otherwise a NOT_SET string. |
| Flow.ClientPhoneNumber.subscriberNumber | Returns the E.164 formatted subscriber number for a tel scheme phone number with a valid E.164 phone number, otherwise a NOT_SET string. |
| Flow.ClientPhoneNumber.dialingCode | Returns theE.164 formatted dialing code string for a tel: scheme phone number, otherwise a NOT_SET string. |
| Flow.ClientPhoneNumber.isSip | Returns false. |
| Flow.ClientPhoneNumber.isTel | Returns true. |
| Flow.ClientPhoneNumber.isGlobal | Returns true. |
| Flow.ClientPhoneNumber.scheme | Returns tel. |
| Flow.ClientPhoneNumber.raw | Returns the Call.Ani. |
Example
The following example illustrate the property data you can extract and the ouput returned when you create a phone number type in a task sequence:
- Variable name: Flow.ClientPhoneNumber
- Value to assign: ToPhoneNumber(+13175550116)
| Property | Output |
|---|
| Flow.ClientPhoneNumber.uri | “tel:+13175550116″ |
| Flow.ClientPhoneNumber.e164 | “+13175550116″ |
| Flow.ClientPhoneNumber.subscriberNumber | “3175550116″ |
| Flow.ClientPhoneNumber.dialingCode | “1” |
| Flow.ClientPhoneNumber.isSip | false |
| Flow.ClientPhoneNumber.isTel | true |
| Flow.ClientPhoneNumber.isGlobal | true |
| Flow.ClientPhoneNumber.scheme | tel |
| Flow.ClientPhoneNumber.raw | “+13175550116″ |