DescribeSObjectResult in Salesforce

Sample Code:

DescribeSObjectResult sobjectRes = Employee__c.sObjectType.getDescribe();
system.debug('Object Label is ' + sobjectRes.getLabel());
system.debug('Key prefix is ' + sobjectRes.getKeyPrefix());
system.debug('Plural Label is ' + sobjectRes.getLabelPlural());
system.debug('Object Name is ' + sobjectRes.getName());
system.debug('Is Object queryable by current user? ' + sobjectRes.isQueryable());
system.debug('Is Object updateable by current user? ' + sobjectRes.isUpdateable());          



No comments:

Post a Comment

Sharing is Caring!!! Share this with your friends!!!

submit to reddit