Map <String, Schema.SObjectType> schemaMap = Schema.getGlobalDescribe();
for(String name:schemaMap.keySet())
{
// Here you can get name ==Sobject name
//by using this SobjectName call describeSobject , It will give list of all fields
}
I read the question differently. I think they're asking what the API name is for either an Object or Field. I'd use something like the in-org VF program from Appirio :
You need to use MetaData API,
like describeGlobal, describeSobject
Hope This will help you
Thanks,
Bala
I read the question differently. I think they're asking what the API name is for either an Object or Field. I'd use something like the in-org VF program from Appirio :
http://developer.force.com/codeshare/projectpage?id=a0630000003Z4PLAA0
Or even better, IMHO, is Apex Explorer:
http://wiki.developerforce.com/index.php/Apex_Explorer