我已经写了下面的逻辑来支付特定账单的费用。但是我收到了错误
INVALID FIELD VALUE","details":"您为以下字段输入了无效的字段值 129:帐户"
我可以看到这个帐户可用,我尝试了 accountid、acctnum 等。到目前为止没有运气!
function _post(context) {
var vendorBillPayment = record.create({
type: record.Type.VENDOR_PAYMENT,
isDynamic: false,
defaultValues: {
entity: 1054
}
})
vendorBillPayment.setValue({
fieldId: 'entityname',
value: "Nikon"
})
vendorBillPayment.setValue({
fieldId: 'account',
value: 129
})
vendorBillPayment.setValue({
fieldId: 'currency',
value: 1
})
vendorBillPayment.setValue({
fieldId: 'customform',
value: 45
})
vendorBillPayment.setValue({
fieldId: 'exchangerate',
value: "1.00"
})
var recordId = vendorBillPayment.save();
}