Hi, I am trying to create note record with suite ...
# suitescript
r
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
Never tried but based on the error it sounds like a note always has to be attached to a record.
r
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);
c
activity
is the field name
See suiteanswer 37120
r
thanks, it worked