Hi,I have an agent who’s sending a docLink via Email.
But I received the Email without the DocLink.
What’s wrong with my code?
Sub Initialize
Dim s As New notessession
Dim db As notesdatabase
Dim memo As notesdocument
Dim webdoc As notesdocument
Set db = s.currentdatabase
Set webdoc = s.documentcontext
Set memo = New notesdocument(db)
Dim item As NotesRichTextItem
Set rtitem = New NotesRichTextItem( memo, "Body" )
Call rtitem.appendtext("You have recieved a new PFRC Request")
Call rtitem.appendtext("Please follow the document link below to view this document.")
Call rtitem.AppendDocLink( webdoc, "Document Link" )
memo.form = "Memo"
memo.SendTo = "aaaa@aaa.com"
memo.Importance = "1"
memo.CopyTo = "bbbb@bbb.com"
memo.Subject = "New PFRC Request"
Call memo.Send(False)
End Sub
Thank you