HI,I try to send a email to user who need to aprouve some task. this email must contains a link to a specific form.
The form contain a embedded view with categories (the username is the category).
I just need to create the link to the form.
here my code (where is my error?)
Function EmailRep(aqui As Variant)
Dim newDoc As NotesDocument
Dim db As NotesDatabase
Dim s As New NotesSession
Dim rtitem As NotesRichTextItem
Dim form As NotesForm
Set db = s.CurrentDatabase
Set newDoc = New NotesDocument( db )
Set rtitem = New NotesRichTextItem( newDoc, "Body" )
Set form = db.GetForm("fViewRepresentant")
newDoc.Subject = "To be aproved"
newDoc.SendTo = aqui
newDoc.Form = "Memo"
Call rtitem.AppendDocLink(form,"Click here")
End Function