1

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?

1 Answer 1

3

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

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

Comments

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.