function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
alexsummersalexsummers 

Prefixes in Salesforce Objects

Good Day!

I'm creating an audit trail using a custom object. My problem is that I need to take note to which object does a record belong to.

Audit Trail
ObjectID Action

I learned that Salesforce Object Id's are prefixed say Account Id's are prefixed 001, Contacts 003 etc.

I would just like to know if these are documented So that I could just parse the ID's and know which object it come from.

 Knowing it is documented saves me from the worry that my program will still work in latter or earlier versions of salesforce I would really appreciate a reply.

Thanks in advance !!!

Message Edited by alexsummers on 03-01-2005 05:31 PM

ScotScot

Alex,

I have never found these in written form, but they are documented by the describeSobject API call ... one of the fields returned by this gives you the prefix.

I realize that this doesn't answer your real issue ... wanting assurance that these will not change.

Someone from salesforce want to reassure him?

Scot

benjasikbenjasik
No plans to change these. If we ever did change one, we'd give you plenty of notice.
alexsummersalexsummers
Thanks a lot guys!!!