在SuiteScript中创建新的客户地址

时间:2019-04-16 01:11:43

标签: suitescript2.0

我正在尝试通过SuiteScript为新客户创建客户地址,但出现错误

“请输入以下值:地址”

custREC.selectNewLine({
    sublistId: 'addressbook',
});
custREC.setCurrentSublistValue('addressbook', 'country',    'AU');
custREC.setCurrentSublistValue('addressbook', 'addressee',  address.firstname + " " + address.surname);
custREC.setCurrentSublistValue('addressbook', 'addr1',      address.address1);
custREC.setCurrentSublistValue('addressbook', 'addr2',      address.address2);
custREC.setCurrentSublistValue('addressbook', 'city',       address.city);
custREC.setCurrentSublistValue('addressbook', 'state',      address.state);
custREC.setCurrentSublistValue('addressbook', 'zip',        address.postcode);
custREC.setCurrentSublistValue('addressbook', 'label',      address.type + ' address');
custREC.setCurrentSublistValue('addressbook', 'default' + address.type.toLowerCase(), true);
custREC.setCurrentSublistValue('addressbook', 'address', "Temp");
custREC.commitLine('addressbook');

custREC是使用record.create创建但尚未保存的记录。我不确定从这一点出发要去哪里?请帮忙。

0 个答案:

没有答案