Format entity phone numbers: custom prefix
The Format entity phone numbers: custom prefix robot converts every phone of the lead, contact or company to "prefix + digits" right in the card, inside Bitrix24 business processes and robots. The prefix is a text input (+, +1, +44 and the like); when a number already starts with the prefix digits they are not doubled. It returns the updated and skipped counts; phone types are preserved.
The robot pulls the full phone list from the card, cleans every number of spaces, brackets and dashes, and writes the list back as "prefix + digits". Each number keeps its type — work, mobile, home — and other contact data stays untouched. If a number already begins with the prefix digits they are not doubled. Values shorter than 7 digits are left as they were and counted as skipped. The robot does not convert national trunk codes. A typical case: bringing a card's phones to a single international form right after creation so duplicate search and telephony work correctly. It returns the updated and skipped counts for conditions and notifications in the next steps.
What input parameters does the robot accept?
| Parameter | Type | Required? | Default |
|---|---|---|---|
| Prefix (country code) | string | — | + |
What does the robot return?
| Parameter | Type |
|---|---|
| Numbers updated | int |
| Skipped (not recognised) | int |
Scenario: one international form for a contact's phones
- The card holds numbers as (0044) 20 7946-0958 and +44 20 7946 0959
- The robot with prefix +44 converts both to +442079460958 and +442079460959
- The workflow receives the updated and skipped counts