Run schedule agent on specific view
Posted on 2008-06-09
I need to have a agent run on documents in a view at night to update them and send an email to Supervisors.
I currently have written this:
Dim s As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
Dim agent As NotesAgent
Set db = s.CurrentDatabase
Set view = db.GetView( "lkupPendingRequests")
Set agent = db.GetAgent("Supervisor")
I feel that I am missing something to actually kick off the agent. When I run the agent Supervisor manually it works but when run it scheduled, it will not run. Any ideas?