+ Start a Discussion
china.leafchina.leaf 

How to get the field type in C#?

for example:AutoNumber, Checkbox,DateTime,…… and so on.

thank you very much!
werewolfwerewolf
You can do that by calling describeSObject and finding that field in the fields array of the returned DescribeSObjectResult

http://www.salesforce.com//us/developer/docs/api/Content/sforce_api_calls_describesobjects_describesobjectresult.htm#i1427375.