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
GangulyGanguly 

Java Code to get a list of all fields of an object

Hi,

 

I have a requirement to retrieve a list of all fields of a Salesforce object through a Java code. I am using Partner WSDL. A code snippet to achieve the above would be of great help. Please help me out as i am a newbie in Java.

 

Thanks in advance.

 

Best regards,

Kaushik

sfdcfoxsfdcfox

http://www.salesforce.com/us/developer/docs/api/index.htm

 

Specifically, check out the section under Describe Calls, describeSObjects(). It provides a Java snippet.