I'm getting an INVALID_FLD_VALUE error when I try to update the account field on an invoice record. I've tried sending the ID I want to set it to both as a string and an integer, neither work. I assume it has something to do with that field being a list? I've seen other examples in our codebase of it being set in the same way though.
Just to work out what's going wrong, this is the example I'm trying to run in the debugger.
invoice = record.load({type: record.Type.INVOICE, id: 3763464});
invoice.setValue({fieldId: 'account', value: 130});
invoice.save();