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
Funky_DBAFunky_DBA 

Newbie Question -- Can I run Scripts to create and populate Custom Objects

Hi

 

I my previous life, I used to run SQL Scripts to create and populate Tables.

 

Can I do the same thing to create Custom Objects ?

 

If not, is there another way I can avoid creating Custom Objects manually, field-by-field ?

 

Thanks a lot.

 

Barry

 

shillyershillyer

Yes, with the Metadata API, you can build Custom Objects and fields programmatically. More here in the docs.

 

Also, you can use the Force.com IDE (which uses the Metadata API), to quickly customize your org.

 

Hope that helps,

Sati

Funky_DBAFunky_DBA

Thanks a lot and I really appreciate your replying so promptly.

 

Barry

 

RyanGuest3RyanGuest3

You'll want to use the metadata api for creating the custom object types.

 

Then use the regular api to insert values. 

 

There are lots of tools that will allow you to insert data quickly if you don't want to spend time writing one-off scripts. I'd recommend the Excel Connector for quickly inserting data. 

Funky_DBAFunky_DBA

Thanks a lot.

 

Barry