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
adreameradreamer 

Creation of a custom field in a custom object

Hi All,

 

I have a Java app that communicates with Salesforce, and among other things, it creates custom fields in a custom object via the create() method of the Metadata API.

 

The Java app works fine with a Salesforce developer/sandbox org.

 

My questions is: will the same Java app work with a production org (Enterprise or Unlimited) ?.

 

Thanks in advance,

Fernando

gaurav.dgaurav.d
can u please share that code with me i have urgent need for creating custom field in standard object
adreameradreamer

Hi,

 

The code we have is basically identical to what there is in the API manual http://www.salesforce.com/us/developer/docs/api_meta/index.htm

 

Follow the link and go to: Getting Started > Quick Start > Step 4: Walk Through the Sample Code. There you have 2 sections with Java code samples for File-based and CRUD-based development respectively. I think you are looking for the CRUD-based one.

 

The code is quite clear and it is well commented out. There isn't anything else beyond that.

 

 

Cheers,

Fernando