7

I am learning for my 401 dev exam and reading the book For.com Developer Certification Handbook DEV401. This book is written a little weird and sometimes is even contradictory to itself. therefore I am not certain that all information is correct. At some point, it says:

A custom field can be marked as an external ID to identify the primary keys of the
legacy system (outside Salesforce). Text, number, e-mail, and auto-number fields can
be flagged as external IDs.

but this seems so weird. I mean, an auto-number is a number that is generated by Salesforce, why would you not want to keep track of one generated unique identifier (Salesforce ID) but then keep track of another unique identifier (auto-number). Does anybody know if this information is legitimate?

6

It's true. Auto-number fields can be external IDs. I can think of at least one good reason. Salesforce.com might be the source of record without explicitly using salesforce.com ID values, which may be case insensitive depending on the other application, which can cause unwanted complications. Using an auto-number field avoids case-sensitive ID values that might otherwise confuse systems not designed to handle such ID values, like Excel (which is, by default, case sensitive).

  • 1
    doesn't SF handle IDs in two different formats? 15 character case-sensitive IDs internally and 18 character case-insensitive IDs for API calls such as data loader. – Jur Van Oerle Jan 26 '15 at 12:23
  • but, to answer my question, auto-numbers can indeed be used :) Thanks for your reply – Jur Van Oerle Jan 26 '15 at 12:24
4

Maybe it the one of the following situations,

1) If you integrate your Salesforce with more than one external systems. That situation, one database supports one format and the other supports another format.

2) Oracle and other databases use different AutoNumber strategy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.