Phone Number Parsing control flow

Learn how to use the Phone Number control flow in PopFlow BUI.

Last published on: March 1st, 2022

The ‘Phone Number Parsing' Activity provides the ability to format any phone number according to the selected ‘Phone format’ type and 'Country region code’ (optional).

image

After opening the 'Phone Number Parsing' activity, you will get the below configuration panel.

Default Configuration Parameters:

  • Select country region code: Country region in which phone number to be formatted. (Optional)
  • Select phone format: It will change the Phone number pattern.
  • Save Result In: Formatted number will be stored in this.

Sample For Each Activity

  1. Select the ‘Phone Number Parsing' activity from 'Activity Sidebar’.
  2. Click on ‘Phone Number Parsing' activity to open and configure the 'Phone Number Parsing’ activity.
  3. Select the ‘Country Region Code' according to your phone number format. This field is optional. If you are not selecting the Region code then your phone number must contain ‘+’ sign and 'Country phone number code’ (+1 ) in order to parse the number.
  4. Select the 'Country Region Code' from the list as shown below:

  1. Select the phone format type from the list in which pattern you want to parse the phone number as shown below:

  1. After selecting the phone format you will see the sample number in which pattern your number will be parsed.
  2. In this example, we are trying to parse the number using the ‘US' Country Region Code and 'International+’ phone format.

  1. After setting the values in the given fields you can close and save the activity by clicking outside of the activity panel.
  2. You will notice a child buttons under the 'Phone Number Parsing' Activity.

  1. THEN: After parsing the phone number this button activity will execute.

You can add any activity on this button and can use the result of 'Phone Number Parsing' activity to execute the several activities like you can create a contact after parsing the phone number that will automatically add the formatted phone number inside the contact details. Below is the example to add activity and use the result of the 'Phone Number Parsing' activity.

  1. Open the ‘Create Contact’ activity and configure it. Below is the example to add the phone number in the contact workspace.

  1. This will add the formatted phone number into the contact workspace.