i try to attach a note to lead record using `recor...
# suitescript
s
i try to attach a note to lead record using
record.attach
but im getting a error saying that
Attaching of record type note to employee is not supported.
, Also when i try to create a note record using
record.create
im getting a error saying
You cannot create a standalone note record.
Why is this happening? how do i achieve my requirement? Pls assist!
code:
// var note_rec=record.create({
/`/ type:'note'`
// });
// note_rec.setValue('title','Test');
// note_rec.setValue('note',bodyPreview);
// note_rec.setValue('notetype',7);
// var noteId = note_rec.save();
record.attach({
record: {
type: 'note',
id: noteId
},
to: {
type: 'lead',
id: 1214
}
});
b
load an existing note that is attached to a lead and inspect its fields to see which fields you need to set
s
Hi @battk. It actually worked. While creating note we have to mention the entity to be linked. Thanks mate