How to create a custom object from a visualforce page?

389 Views Asked by At

I want to create a custom object from a visualforce page not from the salesforce platform itself for dynamic purposes. Is there any way to that?

1

There are 1 best solutions below

0
On BEST ANSWER

Yes, you can use the Metadata API to create custom objects from code.

It is possible to call the Metadata API from Apex, but you need to make some adjustments to get it to work correctly.

See Introduction to calling the Metadata API from Apex