Hi,
I am generating email notifications when notes are inserted, modified or deleted. In the events 'OnAfterInsertEvent' and 'OnAfterModifyEvent' I can retrieve the text of the note using the following code:
Rec.Note.CreateInStream(InStream, TEXTENCODING::UTF8);
CommentRec := TypeHelper.ReadAsTextWithSeparator(InStream, TypeHelper.LFSeparator);
The problem is that in the 'OnBeforeDeleteEvent' and 'OnAfterDeleteEvent' events the text of the note seems to be already deleted, since the code above returns me an empty string. I have used the event recorder and I don't see any interesting events to which I can subscribe. Any suggestion?
Regards.