BV
August 30, 2024, 5:35pm
1
Hi,
I’d like a function or module that can get me the corresponding flag from a phone number.
Input:
a phone number (text). full number with country code, not just a country code on its own.
Desired output:
the corresponding country flag for this phone number (as emoji text)
EXAMPLE:
INPUT: “+33123456789”
OUTPUT: “ ”
Any idea how to do this ?
Thanks for the help.
I use the Phone Number module to extract and normalize the country codes from well-structured phone number data (in my case, I send and receive via Openphone, Calendly, and use Hubspot ph# acquisitions).
Then, create a switch statement or lookup table to translate the country codes to your known country identifiers. See also:
Country calling codes, country dial-in codes, international subscriber dialing (ISD) codes, or most commonly, telephone country codes are telephone number prefixes for reaching telephone subscribers in foreign countries or areas via international telecommunication networks. Country codes are defined by the International Telecommunication Union (ITU) in ITU-T standards E.123 and E.164. The prefixes enable international direct dialing (IDD).
Country codes constitute the international telephon...
Best.
2 Likes
One way to do what @mixelpix says is to use a data store which contains one column with the country code and another with the flag’s Unicode.
This discussion shows you how you could do that:
Hi Make
If I want to create a data store with a small number of records, then it’s easy to do it manually.
But what if I need to create a data store, where there will be, for example, 1000 records? How to do it quickly?
Example
I want to create a data store where 1000 names will be stored.
[2023-02-08_10-50-57]
Is it possible to use something like data import?
L
2 Likes
BV
September 1, 2024, 9:12pm
4
Thank you to @mixelpix and @L_Duperval for the help!
I’ll explore that route. Cheers
BV
September 2, 2024, 1:00pm
6
thank you!
I managed to get what I needed with an Aritable lookup.
But this API could defo be helpful for other needs ! Thanks for sharing
2 Likes