superkumario64
04/30/2019, 9:40 PMvar newRec = record.create({
"type": record.Type.NOTE,
"isDynamic": true
});
newRec.setValue({
"fieldId": "externalid",
"value": 12346
});
newRec.setValue({
"fieldId": "author",
"value": 101
});
newRec.setValue({
"fieldId": "date",
"value": new Date()
});
newRec.setValue({
"fieldId": "note",
"value": "A note made from suitescript"
});
newRec.setValue({
"fieldId": "recordType",
"value": 573
});
newRec.setValue({
"fieldId": "record",
"value": 35105
});
var ret = newRec.save({
enableSourcing: true
});
The above code seems to create a note record, however it doesn’t seem to be attaching it to the correct custom record. It’s like it gets attached to no record as far as I can tell.