Another Salesforce blog!!!

Salesforce, Apex

Counting how many fields I have available on an object


integer FieldCount = account.sObjectType.getDescribe().fields.getMap().size();
system.debug('//'+ FieldCount);

Leave a Reply

Your email address will not be published. Required fields are marked *

*