LOTUSSCRIPT/COM/OLE CLASSES
Dim session As New NotesSession Dim db As NotesDatabase Dim agent As NotesAgent Set db = session.CurrentDatabase Dim selection As String agentList = db.Agents Forall a In agentList If ( a.Name = "Cleansing Agent" ) Then Set agent = a End If End Forall selection = agent.Query
Some sample results: