Aug 16, 2011, 4:18 PM
66 Posts

Attach Notes DocLink to Email

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role:
  • Tags:
  • Replies: 2
 I have a view that allows a user to click on a name. The link takes them to a XPage to edit contact details and then click a button to send any changes via E-mail. What is the best approach to getting a handle on the backend Notes document doclink so I can append the doclink to the E-mail that is sent?
I know there is a getNotesURL() method, but I'm having issues actually grabbing the backend document.

Thanks for any help. 
Aug 22, 2011, 10:35 AM
272 Posts
Re: Attach Notes DocLink to Email
Hi Ryan,
do you want to send a link to a document for the Notes client or the browser? If you just want to add a link to the browser, you have to add the universalid to the link:
You can get the universalid from your datasource via the NotesDocument-Class, for example:
var doc:NotesDocument = currentDocument.getDocument();
var unid = doc.getUniversalID();
return "" + unid
If you wnat to add a notes link you have to use the appendDocLink method of the NotesRichTextItem class.
Hope this helps
Aug 23, 2011, 11:07 AM
66 Posts
Re: Attach Notes DocLink to Email
 Thanks for the reply Sven. I ended up changing this view to a repeat (not because of the attachment issue). I used:
Where "row" is the Collection name of the repeat. This worked for me.