Wednesday May 22nd 2013

Archives

Convert 15 to 18 Digit Salesforce IDs with Google Spreadsheets

We’ve made it easy for Salesforce CRM admins to convert 15 digit IDs to 18 digit IDs with Google Spreadsheets.

The Problem:

The Salesforce.com CRM assigns 15 digit IDs to records. This is a problem when integrating Salesforce with windows systems (like SQL server or naming files based on Salesforce IDs). Windows is case insensitive, so duplication often happens when using 15 digit IDs.

Salesforce developed 18 digit IDs to ensure uniqueness across case insensitive, Windows platforms. But, they make you convert the IDs yourself with a complicated formula unless you buy an expensive version of Salesforce.

The Solution:

  1. Generate a report of the records you want to convert in Salesforce
  2. Export the report as a CSV
  3. Import the CSV into Google Spreadsheets
  4. In the Google Spreadsheet, select Tools > Scripts > Insert
  5. Type Salesforce in the search box
  6. Click Install on the script by bluep@quanten….
  7. Select the row containing the IDs you want to convert
  8. Select from the newly created top menu Salesforce ID > ID 15 => ID 18
  9. If you want to convert 18 digit IDs to 15 digit IDs, select the row with IDs and select Salesforce ID > ID 18 => ID 15

To see how the spec was written for this script, see the post, How to Manage Outsourced Developers.

Thank you to Damon Douglas, David Padbury, and Stefan Kuehlechner for donating your valuable time to this project.

Be Sociable, Share!

Reader Feedback

9 Responses to “Convert 15 to 18 Digit Salesforce IDs with Google Spreadsheets”

  1. [...] video above uses the 15 to 18 Digit Salesforce ID Converter as an example. Here is the original spec for the ID conversion script. [...]

  2. [...] to David Engel for having the tool written and making it free! Check out their full blog post here or check out the video demo [...]

  3. avatar Ankur Shukla says:

    You can use this webpage to do a single convert. I am working on a enhancement to take in CSV’s next.

  4. avatar Ezra says:

    Generate 18-char IDs IN SALESFORCE, WITHOUT CODE, using a formula field: http://tinyurl.com/15CharFix

  5. avatar Tom Kuhn says:

    Hey, great script. I am using this to assist with a lot of data conversion. When I tried the script recently, I receive and error “Script function forEachCell15_ could not be found”. Any advice on this?

    Tom

  6. avatar Tomas says:

    Hey Tom,

    I ran into the problem myself. Have no idea what causes it but I tried looking into the code (Tools -> Script Manager then Edit) and change the names of the functions. I just searched the code for forEachCell15_ and changed it to forEachCell15 And the same for forEachCell18_ . It worked although it is just a workaround.

    Tomas

  7. avatar Steve says:

    Getting the same “Script function forEachCell15_ could not be found” problem

    Tried Tomas’s workaround but that did not work either.
    Any help?

  8. avatar Andrew says:

    FYI – In my case I had to update all references to drop the underscore, then re-add it. In other words, change “forEachCell15_” to “forEachCell15″ across all affected scripts, save, then revert (repeating for the 18 character function as well). Runs like a charm now

  9. avatar Andrew says:

    “Runs like a charm…” – Works like a charm meets runs like a dream :)

Leave a Reply