How to move the records of a parent table to one of it's child table.

Harika Ravuri
Tera Contributor

We got a scenario where we have to move the companies(core_company) to accounts(customer_account). I don't want to recreate the records again as customer as we need same sys id's to be maintained.

1 ACCEPTED SOLUTION

Hi @Harika Ravuri 

 

https://www.servicenow.com/community/csm-forum/convert-companies-to-accounts/m-p/421745/page/2

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Harika Ravuri 

 

Have a look here

https://www.servicenow.com/community/developer-forum/is-it-possible-to-import-parent-table-records-t...

 

Credit @Anurag Tripathi 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG,

 

I appreciate for the quick reply 🙂

 

I'm looking to move the entire data to child table but in the link you have shared is showing how to copy data and differentiate data using some custom field.

Hi @Harika Ravuri 

 

https://www.servicenow.com/community/csm-forum/convert-companies-to-accounts/m-p/421745/page/2

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Harika Ravuri
Tera Contributor

Thank you for the solution. If we just change the class to 'account' from 'company', it'll automatically move to customer_account table. This is as similar as CMDB class change.