function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mahe_developermahe_developer 

API name

How to Know API name of product

b-Forceb-Force

You need to use MetaData API,

 

like describeGlobal, describeSobject

 

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
} 

    

Hope This will help you

 

Thanks,

Bala

NBlasgenNBlasgen

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