How to pull records from an existing table to a custom table?

Arunima_12
Tera Contributor

Trying to pull all records from catalog task table (sc_task) to a custom table (m2m_***)

From :

Arunima_12_0-1704346217336.png

To: (Entry created in M2m table is manually done)

Arunima_12_1-1704346302473.png

 

NOTE:  Opting for 'extends table' while creating the custom table did not work as sc_task is not extensible, and if extended with TASK table that is not pulling  SC task records anyway.

3 REPLIES 3

Amit Verma
Kilo Patron
Kilo Patron

Hi @Arunima_12 

 

Please check if below posts helps :

https://www.servicenow.com/community/now-platform-forum/copy-records-from-one-table-to-another-table...

 

https://www.servicenow.com/community/itsm-forum/extending-tables-from-task/m-p/569655#M141434

 

Thanks & Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

Ankur Bawiskar
Tera Patron
Tera Patron

@Arunima_12 

what's your business requirement here?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

We are using this custom table as a related list on change request.
But when clicking on the EDIT button on related list we are not getting the sctask records on the custom table, because the custom table is falling somewhere in mapping with the main sc_task table.

Arunima_12_0-1704347968588.png

In the above screenshot the sctasks numbers showing now under both lists are manual entries.