We know there are two types of record-id are present in salesforce.
for example
Schema.Describe SObjectResult r = CustomObject__c.sObjectTy pe.getDescribe( );
String keyPrefix = r.getKeyPrefix( );
System.debug('P rinting --'+keyPrefix );
It will print prefix of Custom Object id.
- 15 digit -- Case Sensitive
- 18 digit -- Case Insensitive
for example
- Account-- 001
- Contact-- 003
- Opportunities --006
- Lead --- 00Q
Schema.Describe
String keyPrefix = r.getKeyPrefix(
System.debug('P
It will print prefix of Custom Object id.
6 comments:
Your information is really nice and very informative. Thanks for sharing this great article.
Salesforce Training
Thank You christina jeni...
Thank you, This is really handy!!
Thanks @Fabian
Thanks @Fabian
That is very interesting; you are a very skilled blogger. I have shared your website in my social networks! A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article.
SalesForce online training
Post a Comment