Include Doclink method in LotusScript?

What is the LotusScript to include a doclink in an email you are sending?  I am absolutely positive I've seen it before or even done it but I can't find it anywhere.  The help files only have the "Newsletter" method FormatMsgWithDoclinks, and all the examples I can find just include ALL documents in a view.  I want to send an email with a link to only the CURRENT document so the user can come find it.

Just like the @MailSend with [IncludeDocLink] flag.  It MUST be possible to do.  I just can't find it!!  


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Use AppendDocLink method in the RTItem, here is the syntax for that:

Call notesRichTextItem.AppendDocLink( linkTo, comment$ )

linkTo, can be you uidoc.Document. But note the UIdocument should be saved inorder for the user to open or else it will give an error.

Good Luck

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pentapodAuthor Commented:
Worked a treat, thanks for finding it for me!

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.