API
Version 7.x > API > Create Custom Table programmatically (via API) View modes: 
User avatar
Member
Member
Luca - 10/15/2013 4:39:18 AM
   
Create Custom Table programmatically (via API)
Hi,

Is there a way to create a custom table via API?

User avatar
Kentico MVP
Kentico MVP
Brenden Kehren - 10/15/2013 7:10:56 AM
   
RE:Create Custom Table programmatically (via API)
Take a look in the CMSModules/AdminControls/Controls/Class/NewClassWizard.ascx.cs file. There should be some good examples there to get you started. The different ProcessStep(X) methods should have everything you need.

User avatar
Kentico Support
Kentico Support
kentico_filipl - 10/20/2013 7:26:49 AM
   
RE:Create Custom Table programmatically (via API)
Hi Luca,

FroggEye provided a good code file for a start. It is used when creating new classes - a document type or a custom table. So, you need to extract the parts for custom tables and use it in your API - the key is to create a new DataClassInfo object which represents a new custom table.

Best regards,
Filip Ligac