Jun 07, 2020 02:36 AM
Hi all, I have tried for over 2 hours to get this to work, but can’t seem to.
I am trying to update a barcode primary key field. but the closest I got was this error message:
Type ‘string’ is not assignable to type ‘{ text: string; type?: string; }’.(2322)
Solved! Go to Solution.
Jun 07, 2020 08:01 AM
oh I figured it out, you have to put it inside an extra object with { } and use the text: property. so that you can update barcode fields.
await table.updateRecordAsync(record, {
'Barcode field Name': { text: prefix + nextnumber, },
});
Jun 07, 2020 08:01 AM
oh I figured it out, you have to put it inside an extra object with { } and use the text: property. so that you can update barcode fields.
await table.updateRecordAsync(record, {
'Barcode field Name': { text: prefix + nextnumber, },
});
Jun 16, 2020 07:24 PM
Glad to know that you were able to find a solution! If you would, please mark your latest comment as the solution to your question. This helps others who may be searching with similar questions. Thanks!