How to retrieve deleted items programmatically?

I am using Lotus Notes C++ APIs to retrieve Notes items. But having issues with deleted items. I dont get any message in LNViewFolder $Trash and get the number of deleted items inside LNViewFolder $SoftDeletions. But when i try to open the document for item inside this view, i get error: Invalid or non existing document.

Whats the way to extract deleted items residing in Trash foler?

Subject: How to retrieve deleted items programmatically?

I have the same question.There is LNNote::IsDeleted to indicate the mailmessage was deleted, but I can’t find any method to retrieve it.

Subject: How to retrieve deleted items programmatically?

HiI want the exact solution the above, with addition to another one.

I want to retrieve all the modified notes from the database using LNDatabase::GetModifiedNotes() and then after getting the array of notes, I want to know which note is DELETED/ADDED/MODIFIED and then more want more information of each and every note including the deleted one.

Let me share with you th, LNNote::IsDeleted() is working fine but LNNote::IsModified() is not working even though the note is modified :frowning:

And when I tried to get more info on deleted note its saying … The note does not exist :frowning: