user1561108
user1561108

Reputation: 2747

Create a custom object/fields in Salesforce programmatically

Here is the how-to for creating custom objects manually in Salesforce.

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_qs_customobject.htm

I would like to know can this be done programmatically and if so via which API?

Upvotes: 1

Views: 2161

Answers (1)

Hleb
Hleb

Reputation: 7371

You can use Salesforce Metadata API for dynamic creation of objects, fields, etc. In particular, there is createMetadata() method.

Upvotes: 3

Related Questions