Activity Forums Salesforce® Discussions How can I use country state picklist enabled for org in my apex class?

  • Piyush

    Member
    April 30, 2016 at 3:51 pm

    Hello Rachit,

    You can access State an Country through the Api name StateCode or CountryCode.

  • 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.

Popular Salesforce Blogs

Popular Salesforce Videos