Attempting to script against the SuiteTax native "...
# suitescript
d
Attempting to script against the SuiteTax native "taxregistration" sublist on Customers:
Copy code
customerRecord.setSublistValue({
    sublistId: 'taxregistration',
    fieldId: 'taxregistrationnumber',
    line: 0,
    value: customerToProcess.taxRegNumber
});
customerRecord.setSublistValue({
    sublistId: 'taxregistration',
    fieldId: 'custpage_taxreg_entitydeftaxcode',
    line: 0,
    value: customerToProcess.taxCodeInternalID
});
The first setSublistValue works fine, but I don't think I can reach the Entity Default Tax Code field. Has anyone ran in to a similar issue?