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
meet.sivameet.siva 

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.

 

regards

S.Sivakumar

ibtesamibtesam

Yes Ofcourse!


Salesforce provides dynamic DML for that
.Check the below link

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_dynamic_dml.htm

meet.sivameet.siva

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?

 

regards,

S.sivakumar