Copying single select field value between tables with script

Topic Labels: Scripting extentions
864 0
Showing results for 
Search instead for 
Did you mean: 
4 - Data Explorer
4 - Data Explorer

We’re trying to write a script that will copy all of the records in a template table into a work table. One of the fields in the template table is a single select field, but we can’t seem to copy its value into the new table. We can create a query with the selected records and iterate through them, but can’t get the format right for the single select field.

In the following code, the first two fields copy fine, but we can’t find the correct format to copy the value of the single select field “CATEGORY”.

            fields: {
                'BUYER CHECKLIST':,
                'SORT': task.getCellValue('SORT'),
                'CATEGORY': ???,

Can anyone point us in the right direction?


0 Replies 0