Lately I've seen some questions rising on how to integrate Lotus Notes calendar events with Cloud based applications such as Salesforce.com.
As part of a customer engagement I thought I'd share some experiences here.

One way of accessing the calendar entries in the mail database is by using Domino Web Services which can then be easily called by e.g. Cast Iron
to integrate with Salesforce.

In a first example I will explain how the create a Domino WebService which allows to query the calendar entries for a person.

Development of a Domino WebService is done within Domino Designer so you might want to install that one first (I'm currently using version 8.5.3)

Within Domino Designer, first create a new application "CalendarService" on the server.
(you can also create it locally but you will have to put it on the server anyhow to make it work)

Add a Web Service Provider via right mouse click on “Web Service Providers” :

Sample Code for calendar lookup:

Dim session As NotesSessionDim dbMailFile As NotesDatabaseDim caldoc As NotesDocument

Class MultiFieldArray Public From As String Public Subject As String Public AppointmentType As String Public StartDate As String Public StartTime As String Public EndDate As String Public EndTime As String Public Location As String Public Body As String Public ApptUNID As String Public Categories As String Public SFDC_ID As StringEnd Class