0
votes

There are two NSF on the server, and there are many documents in the two NSF.

When I divide a case in NSF A to a specific member, is there a way to move the document to NSF B?

When dividing a case into a specific member, there is a field in the document to display the name of the member.

If it is feasible, how is it achieved? Is it copied or moved?

Is it possible to share the method?

1
What have you tried yourself so far? Show us some code that you have problems with - Per Henrik Lausten
Check out the CopyAllItems method of the NotesDocument class. - Duston
How many is "many" documents? Why would you want to use multiple dbs? There are at least 4 ways to move documents from one db to another... - D.Bugger
@PerHenrikLausten I haven't started trying to write the code, just want to ask if anyone has done it... - Ariel
@Duston Thanks!I trying this class now. I hope it can be work. - Ariel

1 Answers

1
votes

Use the CopyToDatabase method of the Document class. Here's a simplified LotusScript example:

Dim targetDb As New NotesDatabase("", "path/target.nsf")
Call doc.CopyToDatabase(targetDb)

In order to complete the 'move' operation, you just need to delete the source document afterwards:

Call doc.Remove(True)