function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Poorna Developer 13Poorna Developer 13 

How to get Country ISO code from Account billing country?

Hi Everyone,
 I have a requirement to get ISO of Billing Country from Account Object. And, don't want State/Country picklist enable default setting in salesforce. I need apex code to get ISO code of given country. Currently i'm using Map to get ISO Code.
Is there any other possibility to get ISO Code?
Thanks in advance.
Maharajan CMaharajan C
Hi Poorna,

If your not using the State/Country Picklist then load the list of countries and respective Country ISO into a Custom Metadata Type or Custom Settings or Cutom Object.. Then refer the CMD or Custom setting in your apex code... There is no other option...

Thanks,
Maharajan.C