This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.



Aug 16, 2016, 12:26 AM
110 Posts

Open mail in iNotes from link in XPages

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 9.0.1
  • Role: Developer
  • Tags: inotes
  • Replies: 0

In my XPage, I provide a link for user to click which will open up a mail.

The link example is http://devsvr.acme.com/__48257FA300140CDA.nsf/0/713BC3CB566D281148257FBE0012F778?OpenDocument

I want the mail to open in FULL iNotes when in the web browser but it always show the mail content part only.

Any way how to achieve that?

The mail that I wanted to open does exist. I've confirmed this. In my XPage document datasource, I've stored the mail's server and path as well as unid of the maildoc. So for the link I only do SSJS like following to provide the URL.

        var unid = document1.getValue("Notification_UNID");
        var mailsetdoc:NotesDocument = database.getProfileDocument("Mail Settings", "");
        var mailinsvr = mailsetdoc.getItemValueString("MailInDbSvr");
        var mailinpath = mailsetdoc.getItemValueString("MailInDbPath");
        var mailindb = session.getDatabase(mailinsvr, mailinpath, false);
        var notifydoc:NotesDocument = mailindb.getDocumentByUNID(unid);
        if (notifydoc != null) {
            return notifydoc.getHttpURL();
        }

Anything to modify to the getHttpURL() so that it will open in full iNotes?


This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.