it's in a UE in aftersubmit: function afterSubmit(scriptContext) {
if (scriptContext.newRecord.id == "36028" ) {
log.debug('test');
var taxperiod = record.submitFields({
type : 'invoice',
id : scriptContext.newRecord.id,
values : {
'taxperiod' : '35'
}
});
}
}