GithubHelp home page GithubHelp logo

sourabhmulay / statecodes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mattandneil/statecodes

0.0 0.0 0.0 318 KB

Automatically creates all 4000+ values for state and country picklists

Apex 100.00%

statecodes's Introduction

Deploy to Salesforce This tool initializes all ISO states by screen scraping the forms in setup.
(State and Country picklist values cannot be created any other way)

Install

Verify

Inspect the State and Country picklist values before, during, and after starting the batch:

Modify

After the package creates all the state codes and state names, the values must be permanently activated using Workbench or an IDE connected to the org. Follow these steps in sandbox before attempting in production:

  1. Install the package in sandbox, not production
  2. Go to Installed Packages > Configure > Run Batch
  3. Use any text editor to create a package.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <Package>
        <types>
            <members>Address</members>
            <name>Settings</name>
        </types>
        <version>45.0</version>
    </Package>
    
  4. In Workbench, go to Migration > Retrieve, use package.xml
  5. Download the result and unzip its contents into a new folder
  6. Open the Address.settings file in your text editor
  7. Replace all <active>false</active> with <active>true</active>
  8. Replace all <visible>false</visible> with <visible>true</visible>
  9. Save changes, then zip up the exact contents of the folder again
  10. In Workbench, go to Migration > Deploy, and deploy the new zip file

While we can't provide ad-hoc support for this code, please contact us with your company
name and address if you need a warranty for its use and we will assist: www.xbaf.com/contact

statecodes's People

Contributors

mattandneil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.