I am having an issue with variables in a lotusscript agent holding on to their values from a previous. I have the agent set up to run the agent on selected document but when I run it, the outcome is as if it ran on the previous document that was selected on the previous run. Is there a function that clears them?
Subject: Look at the help file…
From the help for NotesDatabase.UnprocessedDocuments :
For agents that run on new and modified documents, newly received mail documents, pasted documents, or newly modified documents, you must use the UpdateProcessedDoc method in NotesSession to mark each document as “processed,” which ensures that a document gets processed by the agent only once (unless it’s modified, mailed, or pasted again). If you do not call this method for each document, the agent processes the same documents the next time it runs.