How to create Notes URL for Current Request

Hi

Please help me with a simple question. How do we create a Notes URL for a current Request in an email body.

Subject: How to create Notes URL for Current Request

People generally use doc links for that, not URL links. Perhaps you could describe your problem in more detail?

Subject: RE: How to create Notes URL for Current Request

They may use a doc link, However in my case I need a Notes URL for a current request. It means that after completing the new request, it is submitted and an email goes to the approver to approvet the request. This email should contain the Notes URL of the current request created (not the doc link)

Subject: RE: How to create Notes URL for Current Request

Well… you can create a Notes URL using the NotesDocument object of the request. “notes://” + namecn(db.server) + “/” + db.replicaid + “/” + doc.universalid + “?OpenDocument”

where namecn is:

Function namecn(strName as string)

dim nam as new notesname(strName)

namecn = nam.Common

End Function

To include the URL in a mail message you can just include the text – most mail clients will render that into a URL automatically (it’s a user preference setting in Notes). If that’s too uncertain you can use MIME to write your message. The free download that accompanies this article may be of help: MIME