Archive in an other database

Hi!

I ahave a problem.

I create an agent to copy documents older than 3 year in an other database. I do it with simple action.

There are email database.

If a document was in folder in the first database before the agent run, the document go in All documents in the archive database after agent run.

Why the document is not in the same folder in archive document.

The folder exist in both database.

Thank you.

Subject: archive in an other database

Yup. Copying a doc into the new db will not retain what folder it is in.

You need to loop thru each folder of the orginal db.

Get the docs over 3 years.

check the archive db to see if they are in there (could be in more the one folder)

if in (check by message id field) code move to folder to place in correct folder

if not there move to new db and issue put in folder

Subject: RE: archive in an other database

Hi!

How do you do that: to loop thru each folder?

Which object to use?

Can you please give me an exemple(script)?

Subject: RE: archive in an other database

Here is a link to snippet of code that will help cycle thru all the folders in you database

http://www.runningnotes.net/index.php/2009/10/21/find-whichfolders-via-lotusscript/