The CreatorCon Call for Content is officially open! Get started here.

How to copy values from one table to another when fields are same?

Sireesha7
Tera Contributor

Hi All,

 

We have 2 tables A and B with same fields, need to copy the values of A table fields to B table fields when UI action clicked on A table.

What could be better way to achieve this request?

Please assist!

 

Thanks in advance.

 

Regards,

Sai

2 REPLIES 2

Nayan Mule1
Tera Contributor

https://www.servicenow.com/community/developer-forum/copy-data-from-one-field-into-another-s-table-w...

 

Check if this helps you ! Mark my answer correct if it helps you.

Sagar Pagar
Tera Patron

Hi @Sireesha7,

 

You need UI action on table A to GlideRecord the table B  and based on query update the records with fields.

Take a look at one of my solution for sample scritps: How to update fields using another table 


If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow