Get Number of Fields Available on an Object
Sample Code:
Integer numberofFields = Account.sObjectType.getDescribe().fields.getMap().size(); system.debug('Number of Fields-'+ numberofFields);
Sample Code:
Integer numberofFields = Account.sObjectType.getDescribe().fields.getMap().size(); system.debug('Number of Fields-'+ numberofFields);