Get three digit key of an Object using Apex
Submitted by Saravanan on Tue, 18th August 2015In Salesforce every records, objects, fields and RecordType etc has an ID which is used to uniquely identify the component. In each id the first three digit(object key prefix) will represent the object type.
Format of the Salesforce id:
ID : 003D0000001ah2A