Link to me: Notes Document Links as URL, Notes Link and Attachments
Category Show-N-Tell ThursdayIn the beginning the world was easy. You wanted to notify a user, just use @MailSend with [IncludeDocLink] and your email notification was done. It was obvious if your application was on a Notes client, your messaging application would be Notes as well.
Today the picture looks different. You might access your email through a portlet on the intranet or through a POP3 client. But you still want to be able to open that link in the Notes client right? I'm not aiming at web enablement here. What are your options:
- In a Notes client you can use NotesRichText.AppendDocLink
- You could send a link with notes:// ...
- You can create an attachment as NDL file: To see what you need in there you copy a document link and paste it into Notepad. You will get this result:
Wissel's Address Book - My Contacts
<NDL>
<REPLICA 4825713F:00352EEC>
<VIEW OF85255E01:001356A8-ON852554C2:00753106>
<NOTE OFE3DB4DB9:F46B6DAE-ON482572F9:00366DC6>
<HINT>CN=d23m0120/OU=23/OU=M/O=IBM</HINT>
<REM>Wissel's Address Book</REM>
</NDL>
Looks utterly familiar. Inside the NOTE the document uniqueID is embedded similar to the value in the property box. The stuff around the NotesDocument.UniversalID is static, so we can construct that. The view is the uniqueID of the design document. Luckily you can replace that with the name or alias of that view




