Extends Table AFter Creation

sandeepd14
Kilo Explorer

Can we Extend our custom table after creation ,Let say if I forgot to make it inherit from any table [extends table ],

10 REPLIES 10

Hi,
I executed above code to create extension from Task table to my custom table(u_wave) but, now system created new table (z_u_wave) which is extended 'task' table.
Old custom table: 'u_wave' is not extended
new auto created table: 'z_u_wave' is extended with task table.

But all my customizations with old table

Hence, i am not able to use old table to create workflow task activity.

Can anyone help me how to resolve this?

Regards,
Vinodha

 

Vijendra2
Giga Contributor

Below script may of help



Run in script background.



var table = '<source_table>'; //table you want to extend


var old_parent = '';


var new_parent = '<table_extension>'; //the table you want to extend to, like cmdb_ci or task



var changer = new GlideTableParentChange(table);


changer.change(old_parent, new_parent);


Make sure you elevate roles


Vinodha3
Giga Contributor

Hi,
I executed above code to create extension from Task table to my custom table(u_wave) but, now system created new table (z_u_wave) which is extended 'task' table.
Old custom table: 'u_wave' is not extended
new auto created table: 'z_u_wave' is extended with task table.

But all my customizations with old table

Hence, i am not able to use old table to create workflow task activity.

Can anyone help me how to resolve this?

Regards,
Vinodha

Dhananjay Pawar
Kilo Sage

Hi All,

I tried above mentioned code but nothing is happening in Madrid version,

Does anybody have solution for this.

TIA

Dhananjay.