Latest Updates
Travel to Technology
How to find list of custom object prefix decoder in your org?
Learn How to Find List of Custom Object Prefix Decoder in Your org
Please run below script in your developer console
Map<String, Schema.SObjectType> gd = Schema.getGlobalDescribe();
for(String str : gd.keySet()) {
Schema.SObjectType obj = gd.get(str);
Schema.DescribeSObjectResult objResult = obj.getDescribe();
if(objResult.isCustom() == True) {
system.debug('Object name: '+ str + ' - Prefix Code :' +objResult.getKeyPrefix());
}
}You can add additional logic to insert/update the object name and prefix in custom object/custom settings.
Our Recent Blogs
-
27 Jan, 2021
Salesforce Architect Domain Exam
-
23 Nov, 2016
Salesforce Certified Technical Architect New Path
-
28 Mar, 2018
Salesforce Release Exam in Trailhead Certification
-
29 Dec, 2021
Salesforce Certifications