Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Extend table after creation

Pavan Dev
Tera Contributor

Hi,

I am trying to extend the table after creation. So, I have used the below code to extend but not working.

var table = 'u_test_extend_global'; //table you want to extend
var old_parent = '';
var new_parent = 'task'; //the table you want to extend to, like cmdb_ci or task
var changer = new GlideTableParentChange(table);
changer.change(old_parent, new_parent);
gs.log(new_parent);

 

Thanks in advance for the help!

 

 

1 REPLY 1

Rahul Kathuria
Tera Expert

Hi Pavan

This is not recommended but below link might help

https://community.servicenow.com/community?id=community_question&sys_id=52b0c765db98dbc01dcaf3231f961942

Thanks

Rahul Kathuria