6

Is there a way to create custom objects and fields by using script or IDE ?

Salesforce is very easy to use, however, it's so time-consuming to create so many fields on Web interface. So, just wonder if there's ways to use script or IDE to create objects and fields in Salesforce?

1
  • 2
    Are you familiar with Eclipse / Force.com IDE / Brainengine etc editors & development plugins? They will let you download *.object files with objects metadata, you can then edit them in your favorite XML editor and upload back. It's bit trickier to delete fields or picklist values but still... wiki.developerforce.com/page/… Commented Nov 21, 2012 at 10:49

1 Answer 1

9

You're looking for the Metadata API, or already developed tools which use the metadata api.

http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_intro.htm http://www.salesforce.com/us/developer/docs/api_meta/index.htm

Though using it directly will still require some developement, which may not save you much time. you get metadata in XML, but would still need to process it to what you want to achieve.

Somewhat also depend on the nature of what you want to do. I for instance had a requirement today for 150 custom labels based on an input file. Was much faster to generate metadata XML than to ever do that in the web interface. Deployed the metadata using the force.com IDE.

Sign up to request clarification or add additional context in comments.

2 Comments

Hi Sdry: I hope I can "add +1" on your answer, however I dont have enough credits to do it and I can't do it still now.
That's ok, try getting some reputation by helping others out. I gave you an upvote on the question :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.