title: Create an HTML link or button to add an event to a Lotus Notes user's calendar
body: <p>My client uses Lotus Notes for calendering. We have a need to serve event information on SharePoint. I'm trying to create an HTML link or button I can use in a custom display form on SharePoint (HTML) that users can click to add the event to their Notes calendars. So far, I've found no way to do this.</p>
  
  <p>An app exists on my client's Domino deployment(?) that creates buttons for use in Notes email messages that also can collect response information. The action of this button is handled by what looks like Java to me. I've included a sample in case it's relevant, and I can include all of it if it looks like it would be helpful, but it's quite long:</p>
  
  <pre><code>    Set CurDb=Session.CurrentDatabase
  'Get mail file information from Location document using Notes.ini
      MailServer$ = session.GetEnvironmentString( "MailServer",True)
      MailFile$ = session.GetEnvironmentString( "MailFile",True)
  'Set MailDB = session.CurrentDatabase
      If CurDb.Server = ""  Then
              'Attempt to open local mail file
          Set MailDB = session.GetDatabase("", MailFile$) 
          If Not MailDB.IsOpen Then
              Set MailDB = New NotesDatabase(MailServer$, MailFile$)  
              If Not MailDB.IsOpen Then
                  Msgbox "Unable to add event to your calendar because your local and server mail file cannot be located.",16, "Notice"
                  Exit Sub                  
              End If
          End If          
      Else
              'Attempt to open server replica of mail file
          Set MailDB = New NotesDatabase(MailServer$, MailFile$)  
          If Not MailDB.IsOpen Then
              Msgbox "Unable to add event to your calendar because your server mail file cannot be located.",16, "Notice"
              Exit Sub                  
          End If
      End If
  </code></pre>
  
  <p>The same app can create a "web" version that can be added to our current intranet platform, but it uses what looks to me like a custom "hook" to interact with the button application and the user's calendar, and it has no function if not placed within an object on that platform. I include the snippet here in case it offers a clue:</p>
  
  <pre><code>&lt;input type="button" onclick="SendEmailNotification('PTHN-132512')"
  value="Send me a Notes Calendar Invitation" id="HTMLWebBtn"&gt;
  </code></pre>
  
  <p>I'm wondering if using the snippet elsewhere is as easy as linking to a .js file in my source, and am waiting to hear back from people managing the platform internally, but experience says this is a dead end.</p>
  
  <p>Searching on the Googlybox has so far been basically fruitless. I know you can have a link open Lotus Notes by replacing the <code>http://</code> with <code>Notes://</code> followed by the server's name and the application/database/document address (usually a sometimes-really-long string of alphanumeric characters). And I found an article containing strings you can place after the <code>Notes://</code> to open a new document in a given application, i.e., the email editor. But that's as close as I've come.</p>
  
  <p>Any help, folks?</p>