Subject: I get a save conflict when using doc.save(false, false)
It’s not your agent that’s creating the duplicate, it’s the user who’s editing it.
e.g. 1
Your agent gets a NotesDocument
A user opens the same document
The user saves the document
Your agent’s Save(False,False) will fail, because the document was modified after it got the document.
e.g. 2
Your agent gets a NotesDocument
A user opens the same document
Your agent’s Save(False,False) will succeed, because the document was not modified after it got the document.
The user saves the document, and will be warned that it’s going to cause a conflict. If they say YES, then a conflict document is created.
e.g. 3 [This is the one that’s most likelly causeing you trouble]
A user opens the same document
Your agent gets a NotesDocument
Your agent’s Save(False,False) will succeed, because the document was not modified after it got the document.
The user saves the document, and will be warned that it’s going to cause a conflict. If they say YES, then a conflict document is created.
Look into Document Locking which should prevent a 2nd opening/editing of a document.