Play Games

Search This Blog

Thursday, August 25, 2016

get Sobject name from Sobject in apex - Salesforce Globe For You

Sample Code :
Sobject sObj = (Sobject) new Account();
String sObjName = sObj.getSObjectType().getDescribe().getName();
system.debug('sObjNamesObjName :'+sObjName );

Output :

No comments:

Post a Comment