Ariel
Ariel

Reputation: 57

(Domino Notes)How to move documents from the original NSF to another NSF?

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?

Upvotes: 0

Views: 404

Answers (1)

Per Henrik Lausten
Per Henrik Lausten

Reputation: 21709

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)

Upvotes: 1

Related Questions