A blog containing Salesforce coding examples in detail.It's a place where you can find solutions to the problems that you may face in your daily salesforce coding. Apex classes,visual force page,we services,Integration,plugins,extensions,Lightning web components,Aura components,Email Messages,Sales cloud,service Cloud,Marketing Cloud.
Amazon Affliate Link: https://amzn.to/43zNb70
Play Games
▼
Friday, October 9, 2015
How to get Object name based on ID in salesforce
id m='006Z000000El76yIAB';
String sObjName = m.getSObjectType().getDescribe().getName();
system.debug('Object Name :'+sObjName );