need some insight as to what code to use and how should I go about doing this. I need to write and agent for a mail-in database (or just a generic database that shows contact information) that copies the inotes contacts from other databases (368 to be exact) and pulls them into the database the agent is running from.
ok i’ve gotten this far from the help. this is to copy documents from one database to another. but what is the best approach to copy documents from $Contacts view to one database (the one with the agent) from multiple databases (365) of them. is there a function that I can do for this? been looking can’t find anything
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim db2 As NotesDatabase
Dim dc As NotesDocumentCollection
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set db2 = New NotesDatabase _
(“”, Inputbox(“Name of database file?”))
Call db.UpdateFTIndex(True)
Set dc = db.FTSearch(“Acme”, 0)
Set doc = dc.GetFirstDocument()
While Not(doc Is Nothing)
'Use the call statement because to return
'value is needed
Call doc.CopyToDatabase(db2)
Set doc = dc.GetNextDocument(doc)