This module from the appstore seems to provide the information/ function you’re looking for https://marketplace.mendix.com/link/component/112070/Shelterbox-Trust/CountryCodes