Create doc from Notes client or iNotes so users of both can open links

We have a 50-50 split with Notes Clients & iNotes users. I created a doc using the full client, and it has an @Mailsend with a doclink. The receiver can click on the doclink and open the document without a problem.

Since @Mailsend doesn't work with doclinks for iNotes users, I coded a piece of script which built a URL for the iNotes users. This works OK, but when an iNotes user submits the document to a full client user, the receiver is not set up for iNotes, so having a URL instead of a doclink is useless.

I need to be able to create a document from either client or iNotes and both types of client can open the link. Surely there must be a common kind of doclink that both clients can create and open?

I use a URL such as this

sURL = "http://" & servername & "/" & filepath & "/ViewName/" & mainid & "?opendocument"

and attach the URL with

Call body.AppendText(sURL)

It sounds like you have figured out how to run some LotusScript for the web user -- presumably by using a URL with OpenAgent command and some arguments on the URL. Instead of the lines of code you have here, use

Set docToLinkTo =
 db.getdocumentbyunid(mainid) 
Call body.AppendDocLink(docToLinkTo, ...) 

This should work for both Notes and iNotes users, since Domino will convert the doclink to a URL for Web users.

Do you have comments on this Ask the Expert question and response? Let us know.

This was first published in September 2005