The Now Platform® Washington DC release is live. Watch now!
‎12-26-2018 02:49 AM
Hi,
What is the best practices to be followed before changing the data type of a field?
We've custom table which has choice data type field A. Now, the requirement has changed as to let the user select multiple choices. I could implement this requirement using checkbox data type or list data type.
What is the best practice that has to be following before data type is changed from choice to list?
Thanks.
Solved! Go to Solution.
‎12-26-2018 11:29 AM
Hi,
Best Practice for Data Type change = DONT.
If you do this you will loose all data in the column for all records and if the table is huge then it can have performance implications also.
What i can suggest you do is: create a new field with the new data type needed, copy all data form old field to new (using background script)and then delete the old column. If needed change the label of the new column now to be same as old one.
Please mark my answer correct/helpful if it helped you solve your issue.
-Anurag
‎12-26-2018 11:29 AM
Hi,
Best Practice for Data Type change = DONT.
If you do this you will loose all data in the column for all records and if the table is huge then it can have performance implications also.
What i can suggest you do is: create a new field with the new data type needed, copy all data form old field to new (using background script)and then delete the old column. If needed change the label of the new column now to be same as old one.
Please mark my answer correct/helpful if it helped you solve your issue.
-Anurag
‎12-27-2018 07:06 AM
Hii
Are you looking for more info? if this is answered can you please close this thread by marking my answer correct?
Thanks,
Anurag
‎12-28-2018 02:25 AM
Are you looking for more info? if this is answered can you please close this thread by marking my answer correct?
‎05-20-2020 08:37 AM
Hi Anurag,
How would I achieve what you said but for 5 records only? For example, I have 50 records with fields that need a data type change. How can I copy data for these 5 records' current fields to new fields?