+ Start a Discussion
riffindusriffindus 

How to create tab or objects using apex

Hi,

 

I am new to SF. can we create an object/tab and fields using APEX and visual force alone without using any of the customization functionality of salesforce.

 

i know we can implement business logic using controller/triggers etc but is it possible to create object itself and sameway fields, validation rules, formula for the fields etc etc.

 

Please clarify me.

SeAlVaSeAlVa

As far as I know, there are no commands in apex to do that, but you can use the metadata API (http://www.salesforce.com/us/developer/docs/api_meta/index.htm) from your APEX to achieve what you are looking for.

riffindusriffindus

Thanks for the reply.

 

It is my bad, i posted my question wrong. How to create Tab in Visual force.

 

Meantime, you introduced me to metadata API. i went through few tutorials and video, just wondered what would be the advantange of using metadata API when the same can be possible using point and click. Just curious to know.