Hi guys,
I have a project where some customers are attached to Greece as Billing country. From NAV we get EL for the country code but in our countries dictionary, Greece seems to be connected to GR instead.
Which one is correct?
Thank you,
Adrian
Hi guys,
I have a project where some customers are attached to Greece as Billing country. From NAV we get EL for the country code but in our countries dictionary, Greece seems to be connected to GR instead.
Which one is correct?
Thank you,
Adrian
Both are. But it depends on which iso standard is being used.
.NET uses ISO 639-1 where EL is the correct one.
BR Nicolai
Hi Nicolai,
I have this issue again, this time when saving a new user. Apparently, there is some validation of the country code when creating a User with Extranet module.
If I try to save EL on the user, the save fails.
Is there any way I can add EL to the country dictionary used for this validation? I have tried adding to EcomGlobalIso but it still does not validate.
Thank you,
Adrian
.NET uses ISO 639 for language codes and ISO 3166 for country codes.
The two letter ISO country code for Greece is "GR" and the "EL" country code is unassigned (not in use):
https://www.iso.org/obp/ui/#iso:code:3166:GR
https://www.iso.org/obp/ui/#iso:code:3166:EL
The two letter ISO language code for Greek is "el" (Ελληνικά).
https://www.loc.gov/standards/iso639-2/php/langcodes_name.php?iso_639_1=el
A complete culture code (language and country) would then be "el-GR" (Greek - Greece).
In templates you can either use the "UserManagement.CountryList" template loop or call Dynamicweb.Security.UserManagement.User.GetRegions() in order to render a dropdown with all supported countries.
Hi Morten,
Thank you for the clarification.
I have managed to control the value in the template to be EL. My issue is when trying to save the user. I get the module error for "Wrong country code" if I try to save EL in the country code and I am not sure how to avoid it.
Any idea?
Thank you,
Adrian
Use "GR" instead?
Using "EL" as the country code is NOT supported. It is not a valid ISO country code.
Hi Morten,
BC thinks it is :)
I have an integration with BC where I cannot use GR instead of EL.
They cannot change the value in BC because of all the existing records using EL instead of GR.
Any other suggestions?
Thank you,
Adrian
I have no other suggestions than trying to map to correct ISO country codes.
Are you sure that what you are getting from BC is the country code or could it be some kind of language code?
https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/compliance/apptest-countries-and-translations
Hi Morten,
I am very sure that I got EL, that's why I ended up with this error.
I am not sure where I get it from and why they are using EL instead of GR.
I have sent a message to the customer trying to clarify it.
Will get back once I get more context.
Thank you,
Adrian
I think what you are getting from BC is the prefix used for VAT identification numbers.
In most cases this is the country code, but for Greece it seems to be the language code...
https//en.wikipedia.org/wiki/VAT_identification_number
You must be logged in to post in the forum