Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Is this possible to copy the table with the data?

2022_ServiceNow
Tera Expert

Hello everyone!

Is it possible to copy the existing table with the data and get the same table with the different name?

If possible, please let me know how to do the same..

Regards,

Priya

1 ACCEPTED SOLUTION

Thank you for the details.

I believe copying the table in this scenario would be highly discouraged because technically it would be different data altogether if you create a new table also, it would be hard to maintain it. Many other reasons as well.

I would suggest creating a new single line text variable and populate the value you want to display for one of the reference field into that using script and hide the reference variable using the UI policies once the request is submitted. That way one reference variable will be on the form with its actuall display value and single line readonly variable with the other display value that you want.

Please see details Multiple Reference Display values

Regards,

Muhammad

Regards,
Muhammad

View solution in original post

13 REPLIES 13

Hi,

I want to use the same table with the data in the 2 fields in Service Catalog. So, in one of the field, I need to change the display value to email and in another the display value to name.

To do this, I thought of copying the table with the data. If I use the same table and change the display value, it will be changed everywhere wherever we are using the same table.

Please correct me if I'm wrong somewhere!

Thanks,

Priya

Thank you for the details.

I believe copying the table in this scenario would be highly discouraged because technically it would be different data altogether if you create a new table also, it would be hard to maintain it. Many other reasons as well.

I would suggest creating a new single line text variable and populate the value you want to display for one of the reference field into that using script and hide the reference variable using the UI policies once the request is submitted. That way one reference variable will be on the form with its actuall display value and single line readonly variable with the other display value that you want.

Please see details Multiple Reference Display values

Regards,

Muhammad

Regards,
Muhammad

@Priya - I hope that you are able to understand the best practice and followed the steps to achieve your goal. If so, please close the thread by marking the best-suited response as correct to help benefit others in the future.

Feel free to ask if you have any questions.

Have a nice one 🙂

Regards,

Muhammad

Regards,
Muhammad

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

I agree to the point mentioned by Muhammad.

Please provide some details on your use-case

Regards
Ankur

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

Hi,

I want to use the same table with the data in the 2 fields in Service Catalog. So, in one of the field, I need to change the display value to email and in another the display value to name.

To do this, I thought of copying the table with the data. If I use the same table and change the display value, it will be changed everywhere wherever we are using the same table.

Please correct me if I'm wrong somewhere!

Thanks,

Priya