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
chriscwharrischriscwharris 

Import Object field declarations?

Is it possible to import the design of an object, by that I mean can you create a csv that lists row by row the fieldname, datatype etc.. and import all the fields for an object then go in after and tweek things? I don't mean "data" here, I mean the field definitions. The reason I ask is I want to develop an app on SF that I already have elsewhere and it has a lot of fields, importing them into an Object would save a lot of time.
Jerome LusinchiJerome Lusinchi
Hi,
You can use Ant to export meta-data and then import it in another environnment.
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_deploying_ant.htm

Jerome
 
chriscwharrischriscwharris
Will that allow me to import the design for standard objects? I'm not talking about Apex or importing from another SF org, this is a system built on another platform. Thanks
Jerome LusinchiJerome Lusinchi
well, 
you'll have to search for the exact format, but you'll have to create an xml file with all the component you want to create : fields for example and then with ant, you'll be able to create the design based on the xml file.
And yes, you'll be able to import the design for standard objects