Hi!
ist es irgendwie möglich einen background agent aus Script heraus zu starten?
Erhalte immer die Fehlermeldung "Notes error: unsupported trigger and search in the background or enbedded agent"
Sub Click(Source As Button)
Dim session As New NotesSession
Dim newsdoc As NotesDocument
Dim db As NotesDatabase
Dim dc As NotesDocumentCollection
Set db = session.CurrentDatabase
Set dc = db.unprocesseddocuments
Set newsdoc=dc.getfirstdocument
While Not( newsdoc Is Nothing)
newsdoc.TestMailSend = "1"
Call newsdoc.Save(True,False)
Set newsdoc = dc.GetNextDocument(newsdoc)
Wend
Dim agent As NotesAgent
Set agent = db.GetAgent("CreateDocs")
If agent.Run = 0 Then
Messagebox "Agent ran",, "Success"
Else
Messagebox "Agent did not run",, "Failure"
End If
End Sub