+ Start a Discussion
Suman Saha 47Suman Saha 47 

Object & field creation from XML file

I have 2 objects & 20 fields in each objects. Do we have any mechanism to create these objects & fields in one shot, like from xml?
Suman - You can use the Metadata API to do this. The easiest way to do this is using the Eclipse toolkit to get access to it. See the link here on how to use and install Eclipse http://wiki.developerforce.com/index.php/Force.com_IDE

Once you installed make sure that you have include 'Object' folder in your project, then generate your XML file similar to the other object formates check this link for the standard formate for the XML file for custom object and fields -  https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/customobject.htm  then right click the XML file and click "deploy to server" to create object and fields in your org.

Karanraj (http://www.karanrajs.com)