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
mohammadd ismailmohammadd ismail 

Standard object id

Hi,

Could someone help me how to get the id for a standard object in salesforce.

Thanks in advance.
Best Answer chosen by mohammadd ismail
NagendraNagendra (Salesforce Developers) 
HI Ismail,

Usually, the Salesforce ID have 15 or 18 characters; The object id refers to first three characters from the Salesforce ID. For example, if you browse any Account Name in the org it should be this way "001F000000gkM5s".
001 is Account object id. Similarly, we can find the object id from Salesforce ID from first three characters.
 
If the ID starts with 001, it belongs to Account object.
006 pertains to opportunities.

Hope this helps.

Kindly mark it as best solution if it's solved.

Best Regards,
Nagendra.P

All Answers

NagendraNagendra (Salesforce Developers) 
HI Ismail,

Usually, the Salesforce ID have 15 or 18 characters; The object id refers to first three characters from the Salesforce ID. For example, if you browse any Account Name in the org it should be this way "001F000000gkM5s".
001 is Account object id. Similarly, we can find the object id from Salesforce ID from first three characters.
 
If the ID starts with 001, it belongs to Account object.
006 pertains to opportunities.

Hope this helps.

Kindly mark it as best solution if it's solved.

Best Regards,
Nagendra.P
This was selected as the best answer
mohammadd ismailmohammadd ismail
HI Nagendar,

Thanks for the help.
 
NagendraNagendra (Salesforce Developers) 
Hi Ismail

If your problem is resolved mark it as solved, So that any others from the community are facing the same problem it will be helpful for them to find the solution.

Best Regards,
Nagendra.P