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
RAVSRAVS 

Create Objects Dynamically

Hi all, I have a question. Is is posible to create a custom object using a web service call or apex code? Thank you very much for you help.
jpwagnerjpwagner
Yes.  Check out the metadata API documentation.
RAVSRAVS
Thank you very much for the reply. I read the Metadata API but there isnt a clear example of create/update a custom object with its information like fullname, enable reports, so on and custom fields (that is what I need). Could any give  me an example please? or maybe an url where is more explained the metadata API.
Akshay HemmadyAkshay Hemmady
@RAVS: Lazy person! here you go, it caters to your requirement:
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/customfield.htm