SObjectType objectType = Schema.getGlobalDescribe().get('<Object API Name>'); Map<String,Schema.SObjectField> fieldMap = objectType.getDescribe().fields.getMap();
SObjectType objectType = Schema.getGlobalDescribe().get('<Object API Name>'); Schema.DescribeSObjectResult objectDescribe = objectType.getDescribe();