+ Start a Discussion
Siyuan GuSiyuan Gu 

where can I find the contact column names?

I want to user the bulk api to get the contact information. Where can I find the column names in the contact table?
ANUTEJANUTEJ (Salesforce Developers) 
Hi Siyuan,

If I get the question right and if you are trying to get the API name for the columns for contact object you can check them via setup under that particular object and you could also get using the package.xml for that particular object, that are present in below link:

>> https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/manifest_samples.htm

I hope this helps and in case if this comes handy can you please choose this as best answer so that it can be used by others in the fututre.

Regards,
Anutej
shaik murthujavalishaik murthujavali
Hi,
Use below code.
string obj = 'Account';
SObjectType objToken = Schema.getGlobalDescribe().get(obj); 
DescribeSObjectResult objDef = objToken.getDescribe();
Map<String, SObjectField> fields = objDef.fields.getMap();
system.debug(fields);

Thanks.