Saves any changes you have made to a document.
flag = notesDocument.Save( force, createResponse [, markRead ] )
force
Boolean. If True, the document is saved even if someone else edits and saves the document while the script is running. The last version of the document that was saved wins; the earlier version is discarded.
If False, and someone else edits the document while the script is running, the createResponse argument determines what happens.
createResponse
Boolean. If True, the current document becomes a response to the original document (this is what the replicator does when there's a replication conflict). If False, the save is canceled. If the force parameter is True, the createResponse parameter has no effect.
markRead
Boolean. If True, the document is marked as read on behalf of the current user ID. If False (default), the document is not marked as read.
Note If the database does not track unread marks, all documents are considered read, and this parameter has no effect.
Avoid using this method in a document returned by NotesUIDocument.Document. Use NotesUIDocument.Save instead. Otherwise, a user who saves in the front-end creates a save conflict.
save method in Java Document class
@DocMark function in formula language
FileSave @command in formula language
See examples