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

Dynamic creation of custom objects

Is it possible to create custom objects from apex class dynamically (i.e) during runtime?If it is possible,explain me the steps with an example?

Its urgent.Please help me.





Yes Ofcourse!

Salesforce provides dynamic DML for that
.Check the below link


Hey thanks for your reply.

I can understand the concepts explained over there, but i am not able to map those concepts to my requirements. So please help me to solve my problem.


I have custom object Opportunity_CRM__c. Once i upload the data into it i have to create another custom object test__c automatically with employee_id__c as one field.? can u give me the logic to implement this?