+ Start a Discussion
BondicloudBondicloud 

how get standard object id??

Hi All,

 

Generally if i open custom object  .. in the url i got objcet id .  but if i open standard objects like Account or user i am not getting ...

so can any body help how to get user object id.

 

@

Narayan Bondi

Best Answer chosen by Admin (Salesforce Developers) 
BondicloudBondicloud

see the bellow link  for get clarity on object id

 

http://www.salesforcefast.com/2012/02/salesforce-standard-object-record-id.html

 

@Narayan BONDI

All Answers

Devendra@SFDCDevendra@SFDC

Hi,

 

If you are looking for current user id in apex then,

 

String userId = UserInfo.getUserId();

nbknbk

Usually the Salesforce ID have 15 or 18 characters, The object id referes to first 3 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 3 characters.

 

If the ID starts with 001 it is belongs to Account object.

006 is belongs to opportunities.

 

 

BondicloudBondicloud

see the bellow link  for get clarity on object id

 

http://www.salesforcefast.com/2012/02/salesforce-standard-object-record-id.html

 

@Narayan BONDI

This was selected as the best answer
Raghu Ram 11Raghu Ram 11
What is the ID for Quote?