IncludeDocLink

Hi,I have created a form with a workflow, and the form is sent by Email with an attachment of this form (IncludeDoclink). Is it possible instead to have a link of my document, to have exacly the whole document in my Email???

Any solution???

Thanks

Subject: IncludeDocLink

I’ve created an agent for that:

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 NotesItem



Set rtitem = New NotesRichTextItem( memo, "Body" )

Call rtitem.appendtext("You have recieved a new PFRC Request "+webdoc.pfrc_name(0)+" described as "+webdoc.pfrc_hosp_info(0)+Chr(10)+Chr(10))

Call rtitem.appendtext("Please follow the document link below to view this document.")

Call rtitem.AppendDocLink( webdoc, "Document Link" )



memo.form = "Memo"

memo.SendTo = "pfrc@hsl.jgh.mcgill.ca"

memo.Importance = "1"

memo.CopyTo = ""

memo.Subject = "New PFRC Request"



Call memo.Send(False)

End Sub

Subject: Yes it can be done like this:

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 NotesItem



Set rtitem = New NotesRichTextItem( memo, "Body" )

Call rtitem.appendtext("You have recieved a new PFRC Request "+webdoc.pfrc_name(0)+" described as "+webdoc.pfrc_hosp_info(0)+Chr(10)+Chr(10))

Call rtitem.appendtext("Please follow the document link below to view this document.")

Call rtitem.AppendDocLink( webdoc, "Document Link" )



call webdoc.RenderToRTItem(rtitem)



memo.form = "Memo"

memo.SendTo = "pfrc@hsl.jgh.mcgill.ca"

memo.Importance = "1"

memo.CopyTo = ""

memo.Subject = "New PFRC Request"



Call memo.Send(False)

End Sub

Subject: Suggestion when posting code…

strip the code of any real email address, servernames, dbnames, etc. Spammers will soon have the email address you included…

Subject: IncludeDocLink

Hi Eric@Mailsend without parameters mails the current document. You must have a ‘SendTo’ field for this to work.

Hope this helps.

Louise

Subject: RE: IncludeDocLink

There is an error in the code :

don’t recognize

Call webdoc.RenderToRTItem(rtitem)

thanks

Subject: RE: IncludeDocLink

Sorry, I forgot to mentione you that’s the application must be web enable.

Thanks

Subject: IncludeDocLink

You could send the document and not use the standard “Memo” form. See if that meets your needs.

Also, check out NotesDocument.RenderToRTItem

Collin

KC8TKA