Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Salesforce generates and manages the 15-18 character Salesforce IDs for objects in their system.

We are getting a super weird error where our system can't handle an ID coming in from a customers installation of our Salesforce app. The ID that is being passed in is a 6 digit number.

We are 99% sure that you can't change the ID of a Salesforce object, and that somewhere our app is generating an incorrect ID, but just wanted to sanity check myself.

Is there a way to change the 15-18 character Salesforce ID for an object?

share|improve this question
up vote 8 down vote accepted

Short of cloning the object, and deleting the original, I know of no way to change the GUID for an SF Object.

Perhaps we ( the community ) could be of more help figuring out how to get your system to accept the object?

share|improve this answer
Thanks Kevin. Short of posting all the code which I can't do :), we just need to work through it. Thanks for saving my sanity, wince we now know that the customer can't change the ID it is definitely on our side. – Joshua Dance Feb 25 '14 at 20:33

Nope. There is only 1 Id type, the 15 character version and the 18 character version.

15 character version is case sensitive, 18 character version is case non-sensitive.

Can you confirm you are not pulling in the name of the sobject / table? This field could be set to auto increment. IE: SF-0001, SF-0002, etc

share|improve this answer
The ID is not SF-0003 etc. It was a straight 6 digit number. 345648. – Joshua Dance Feb 25 '14 at 20:32
This can still be the Name field on that Sobject / Table. I was making an example. In order to help, I'll need more information, or you'll have to ask the client to have access to their org so you can see what is going on. If you are pulling this from a formula, validate you are pulling in an ID and not the name of the record. If this is a formula, make sure to specify the Id as the last parameter, ie: AccountLookup__r.Id – Double A Feb 25 '14 at 20:43
Gotcha. Thanks. I will see what I can post. – Joshua Dance Feb 25 '14 at 20:44
By the way, it's a long shot, but are these cases you are dealing with? It almost looks like a Case Number. – Double A Feb 25 '14 at 21:01

It could also be a custom AutoNumber field on an SObject/Table (custom or standard). That could give you a six-digit number.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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