--- title: "Mogli Number Flow - Single Phone Field" slug: "mogli-number-flow-single-phone-field" updated: 2025-12-01T17:07:00Z published: 2025-12-01T17:07:00Z canonical: "guide.mogli.com/mogli-number-flow-single-phone-field" --- > ## Documentation Index > Fetch the complete documentation index at: https://guide.mogli.com/llms.txt > Use this file to discover all available pages before exploring further. # Mogli Number Flow - Single Phone Field Please Note This article is intended for clients who either do not utilize the standard Mogli Number Flows on Contact and Lead objects, or who require Mogli Number Flows on additional objects. If you need assistance building these custom flows, please contact our Technical Support Team at [help@mogli.com](mailto:help@mogli.com). ## Mogli Number Flow from Single Phone Field Use the flow below as a guide for populating the Mogli Number from a single phone number field, such as "Phone". *NOTE: Before activating this flow for Contact or Lead, please ensure that the Workflow Rules included in the Mogli package are deactivated. Failure to deactivate these* *Workflow Rules can result in the two automations conflicting with each other and preventing accurate updates to the Mogli number.* ## Description Populate the Mogli Number field based on the Phone field. ## **Overview** **![](https://cdn.document360.io/aabde203-b6df-4543-b557-999d7d8b937a/Images/Documentation/Screenshot%202024-01-12%20at%204.00.20%20PM.png)** ## **Conditions** **![](https://cdn.document360.io/aabde203-b6df-4543-b557-999d7d8b937a/Images/Documentation/Screenshot%202024-01-12%20at%204.00.59%20PM.png)** ## **fPhoneMogliNumber** *From the Resources Tab create:* ***Formula > Text Variable*** *(United States Number Only - See International Section for International Number instructions)* **![](https://cdn.document360.io/aabde203-b6df-4543-b557-999d7d8b937a/Images/Documentation/Screenshot%202024-01-12%20at%204.04.35%20PM.png)** | **IF(ISBLANK(TRIM({!$Record.Phone})),"",** ****IF(REGEX(TRIM({!$Record.Phone}),"[\\s\\S\\w\\W]*[a-zA-Z@#$%^&*<>!?\\[\\]_{};:'/~`]+[\\s\\S\\w\\W]*"),"",**** **"+1" & SUBSTITUTE( SUBSTITUTE( SUBSTITUTE( SUBSTITUTE( SUBSTITUTE( SUBSTITUTE( SUBSTITUTE( SUBSTITUTE( SUBSTITUTE(("+"& TRIM({!$Record.Phone})),"++1",""),"+1",""),"+",""),"(",""),")","")," ",""),"-",""),",",""),".","")))** | | --- | ## ## **vMogliNumber** *From the Resources Tab create:* Create a text variable (vMogliNumber) and assign the default value of fPhoneMogliNumber **![](https://cdn.document360.io/aabde203-b6df-4543-b557-999d7d8b937a/Images/Documentation/Screenshot%202024-01-12%20at%204.06.31%20PM.png)** ## **Update** ## ![](https://cdn.document360.io/aabde203-b6df-4543-b557-999d7d8b937a/Images/Documentation/Screenshot%202024-01-12%20at%204.09.25%20PM.png) Sending Texts Internationally? *International texting is available on Elite and Enterprise plans only. For more information on our WhatsApp functionality, see our [WHATSAPP](/user-guide/docs/whatsapp) section.* You’re going to need to customize the Mogli Number flow to insert the proper country code based on the location of your recipient instead of "+1". **First, create a custom formula field to determine the country code based on a selected country on the record.** For a list of country codes, reference [Populating Country Codes](/user-guide/docs/populating-country-codes). ![](https://cdn.document360.io/aabde203-b6df-4543-b557-999d7d8b937a/Images/Documentation/image-1702072697500.png) **Next, revise the fPhoneMogliNumber formula to reference the country code instead of +1.** Follow all other steps as listed above. ![](https://cdn.document360.io/aabde203-b6df-4543-b557-999d7d8b937a/Images/Documentation/image-1702072760457.png) **IF(ISBLANK(TRIM({!$Record.Phone})),"",** ****IF(REGEX(TRIM({!$Record.Phone}),"[\\s\\S\\w\\W]*[a-zA-Z@#$%^&*<>!?\\[\\]_{};:'/~`]+[\\s\\S\\w\\W]*"),"",**** ****"+" &**** **{!fCountryCode} & SUBSTITUTE( SUBSTITUTE( SUBSTITUTE( SUBSTITUTE( SUBSTITUTE( SUBSTITUTE( SUBSTITUTE( SUBSTITUTE( SUBSTITUTE(("+"& TRIM({!$Record.Phone})),"++1",""),"+1",""),"+",""),"(",""),")","")," ",""),"-",""),",",""),".","")))**