Activity › Forums › Salesforce® Discussions › How can I use country state picklist enabled for org in my apex class? Tagged: Country State, Picklist, Salesforce Apex Class, Salesforce Force.com Salesforce® Discussions How can I use country state picklist enabled for org in my apex class? Posted by Rachit on April 30, 2016 at 3:41 PM How can I use country state picklist enabled for org in my apex class ? Ajit replied 10 years ago 3 Members · 2 Replies Country StatePicklistSalesforce Apex ClassSalesforce Force.com 2 Replies Piyush Member April 30, 2016 at 3:51 PM Hello Rachit, You can access State an Country through the Api name StateCode or CountryCode. [adinserter block='9'] Ajit Member April 30, 2016 at 3:54 PM Go to Setup –> Data Management –> State and Country Picklists Follow the steps : But make sure it will change your organization data, In order to enable this option you must to do the following three options to enable. 1. Configure states and countries. –> You need to configure which country you want. 2. Scan now. –> This will scan all your existing data in contact. 3. Convert your data. –> Then convert all your existing data. Once you finish those steps you will able to enable this feat Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me