Kankara
0
Q:

apex get object fields by api name

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

New to Communities?

Join the community