I have 2 agents that must checks Username, IP address and Mac address when I execute them. My problem is that both agent (Username and IP/Mac Address) contain the same beginning to go see UnprocessedDocument but 1 gave my the selected rows but the other one give me all the document.
Here my code :
Set session = New notessession
Set uiworkspace = New notesuiworkspace
Set db = session.currentdatabase
Set hdc = db.UnprocessedDocuments
Set wdc = db.UnprocessedDocuments
Set hdoc = hdc.GetFirstDocument
While Not hdoc Is Nothing
… 'check write things…
Wend
I don’t understant why I don’t get the same thing in both agent.