Here is some helpful info:
LUA extensions for notes
note.create ( Name, Description )
Creates a note with the provided name and description fields set, and returns the note identification number (NoteId).
note.append ( Name | NoteId, Description [, Overwrite ] )
Appends the descriptive text to an existing note defined by the name or the id. A new note will be created when no matches are found. Returns status.
note.delete ( Name | NoteId )
Deletes a note with the provided name or id. Returns status.
note.find ( Name )
Returns the NoteId of the named note, and the note description as the second return parameter, or nil when nothing matches the provided Name.
note.attach ( Name | NoteId, NimId *, NimId…+ )
Attaches the note to one or more alarms specified as NimIds.