Reply
Regular Contributor
meet.siva
Posts: 24
0

How to create custom object using Apex?

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

 

Help me plz

 

Regards,

S.Sivakumar

Super Contributor
Vinit_Kumar
Posts: 645
0

Re: How to create custom object using Apex?

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.

Don't forget to give KUDOS if post helped you.

If this answers your query,please mark this as solution so that it would be useful for others.


Regular Contributor
meet.siva
Posts: 24
0

Re: How to create custom object using Apex?

 

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

Regular Contributor
meet.siva
Posts: 24
0

Re: How to create custom object using Apex?

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?

Super Contributor
Vinit_Kumar
Posts: 645
0

Re: How to create custom object using Apex?

Siva,

 

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

Don't forget to give KUDOS if post helped you.

If this answers your query,please mark this as solution so that it would be useful for others.


Regular Contributor
meet.siva
Posts: 24
0

Re: How to create custom object using Apex?

hey thanks, i will chck it

Regular Contributor
meet.siva
Posts: 24
0

Re: How to create custom object using Apex?

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.