Hi,
I am trying to create note record with suite script 2.0 and its giving error as "You cannot create a standalone note record"
Below is the sample code i tried and tried with isDynamic: true while creating the record then also getting the same issue.
var noteRecord = record.create({
type: 'note'
});
noteRecord.setValue({ fieldId: 'note', value: "test"});
// save note record
var noteRecordId = noteRecord.save();
log.debug("noteRecordId", noteRecordId);
e
eblackey
11/12/2021, 2:05 PM
Never tried but based on the error it sounds like a note always has to be attached to a record.
r
raju
11/12/2021, 2:07 PM
tried that one also, still getting the same issue
// create user note record
var noteRecord = record.create({
type: 'note'
});
noteRecord.setValue({ fieldId: 'note', value: "test" });
noteRecord.setValue({ fieldId: 'supportcase', value: 1234 });
// save note record
var noteRecordId = noteRecord.save();
log.debug("noteRecordId", noteRecordId);