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

荒凉一梦 提交于 2021-01-07 04:12:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!