+ Start a Discussion
meet.sivameet.siva 

How to create custom object using Apex?

Is creation of custom object possible with apex and metadata API?

 

Help me plz

 

Regards,

S.Sivakumar

Vinit_KumarVinit_Kumar

Siva,

 

You can't create custom object via Apex,however,you can create it using Rest Metadata API.You have to get Rest Metadata API enabled in your org by contacting support.

meet.sivameet.siva

 

Hey thanks. I need to solve this problem. Plz help me

 

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.?(i.e dynamically i have to create the custom object) can any one give me the logic to implement this?

 

regards,

S.Sivakumar

meet.sivameet.siva

I tried a lot to get Metdata API for my developer account. But I cant understand the steps posted either on net or SFDC articles..So can you explain me in detail, to create custom object using metadata API in developer edition?

Vinit_KumarVinit_Kumar

Siva,

 

Try using Fiddler tool to use Rest API to create custom object.You have to populate the fields and datatypes of the field.

meet.sivameet.siva

hey thanks, i will chck it

meet.sivameet.siva

hey have you used fiddler tool? i find it difficult to use it. So can you guide me to use metadata API using fiddler tool.