Nein keine ui Klassen vllt hilft der Quellcode
Sub Initialize
Dim session As New NotesSession
Dim ws As New NotesUIWorkspace
Dim db As NotesDatabase
Dim names As NotesDatabase
Dim uid As String
Dim heute As New NotesDateTime("Today")
Dim username As New NotesName(session.CommonUserName)
Dim RTItemProfileDoc As Variant
Dim oRTItem As NotesRichTextItem
Dim cText As String
Dim cError As String
Dim zaehler As Integer
Dim oView As NotesView
Dim oSearchDoc As NotesDocument
Dim oNeuDoc As NotesDocument
Dim ProfilDoc As NotesDocument
Dim cEmpfaenger As String
Set db = session.CurrentDatabase
Set ProfilDoc = db.GetProfileDocument("PDAllgemein")
Set oView = db.GetView("vwReminder")
Set oSearchDoc = oView.GetFirstDocument
While Not (oSearchDoc Is Nothing)
Set oNeuDoc = db.CreateDocument
oNeuDoc.Form = "Memo"
oNeuDoc.Subject = "Reminder: "& oSearchDoc.txCustNo(0) & oSearchDoc.txCustName(0) & " KonsiInventory Database"
Set oRTItem = New NotesRichTextItem(oNeuDoc, "Body") ' *** in Body des Memos reinschreiben
Call oRTItem.AddNewLine(1)
Call oRTItem.AppendText( "Please edit your workflow . Link to document --> " )
Call oRTItem.AppendDocLink(oSearchDoc, "link to document" )
cEmpfaenger = Cstr(oSearchDoc.fdReminder(0))
Call oNeuDoc.Send(False, cEmpfaenger)
oSearchDoc.fdAnRem = cEmpfaenger
oSearchDoc.fdRemText = "Reminder: "& oSearchDoc.txCustNo(0) & oSearchDoc.txCustName(0) & "send to " & cEmpfaenger
oSearchDoc.fdRemDate = Now
Call oNeuDoc.Save(True,True)
Set oSearchDoc = oView.GetNextDocument(oSearchDoc)
Wend
End Sub
In der Ansicht vwReminder sind zwei Dokumente, wie gesagt wenn ich es manuell starte funktionierts, automatisch funktionierst nicht
Agenteinstellung:
Markiert ist Durch Zeitplan
Zeitplan.... wöchentlich / Donnerstag / 11:00
Ziel Alle Dokumente in der Datenbank