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)
Best answer by Hamish_Ahern
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, }, });
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!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.