Thanks for previous reply on copyToDatabase feature. Problem is I have to do this in a Java agent in notes - it 's an existing agent that has quite a bit of functionality in it.
I have an array of database locations called DB_LOCS
When certain variables are applicable, it will pick a database location from the array.
When I apply the following code:-
Document newNotesDocument = currentEmailDocument.copyToDatabase (DB_LOCS[i]);
newNotesDocument.putInFolder (“Processed”);
The compiler flags up an error on the first line stating:-
"Incompatible type for declaration. Can’t convert java.lang.String to lotus.domino.Database
The array value is “server\folder\database.nsf”
I think that it may have something to do with setting the target database up in the code and something to do with AgentContext from what i can tell with the help, but I’m not sure.
Any ideas?