问题
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:
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)
来源:https://stackoverflow.com/questions/64442339/domino-noteshow-to-move-documents-from-the-original-nsf-to-another-nsf