In the MAIL-DB is an Agent “Archive\Selected Documents”. In this Agent documents from a documentcollection are archived. The documetcollection is “db.unprocesseddocuments”. This works fine.
If I make my own documentcollection , for example with db.ftsaerch, then no documents are archived.
OK:
Set collection = db.unprocesseddocuments
…
Call db.archiveNow( collection, policy )
Not OK
Set collection = db.ftsearch(…)
…
’ collection.count=334
Call db.archiveNow( collection, policy )
Matthias Leonhardt
Subject: db.archiveNow und Documetcollection
Hi, I have the same problem. Did you find solution for this?
Thanks, Martin
Subject: RE: db.archiveNow und Documetcollection
ArchiveNow is not a documented method of NotesDocumentCollection – you don’t know what the dependancies are. It just may be the case that it can only work when the document collection is derived from UnprocessedDocuments; further, it may be the case that it only works on UnprocessedDocuments when it refers to documents selected in a view in the UI. Undocumented features are usually undocumented for a reason. Often it is custom code introduced to do one thing under one circumstance. This seems to be the case here.
Subject: db.archiveNow und Documetcollection
It worked for me when I used the dc = parentdoc.responses method, which obviously isn’t useful in all cases, but thought I’d mention it.
In my case, I was just trying to force specific folders in the main mail file to appear inside all the known archive files. I created a dummy document in the backend and did a doc.MakeResponse(Parentdoc) to attach it to the message where the button resided (the code was distributed via email as a button). I then added it to the folder in question, and then used db.ArchiveNow(dc, archivename) and it worked like a charm.