Create Appointment

Hi,

I would like create a appointment in Lotus with a VB.Net program.

My problem is that i have a lotus domino Object DLL… but with it, i can only add an E-mail but not a appointment or a meeting because there isn’t the object and method whith correspond it :confused:

PS : i hope you understand me because i haven’t a good enghish… sorry !

Thank you for your help.

Subject: Create Appointment

Creating an appointment/meeting is basically just creating a notes document in a mail database. These types of documents require specific fields to be included and you should familiarize yourself with these fields but the following sample should put you on the right path:

Dim s As NotesSession

Dim db As NotesDatabase

Dim appt As NotesDocument

Set s = CreateObject(“Lotus.NotesSession”)

Call s.Initalize

Set db = s.GetDatabase(server, mailfile)

Set appt = db.CreateDocument

appt.Form = “Memo”

appt.Chair = “name of person chairing the appt”

appt.From = “name of person sending the appt”

appt.SendTo = “some attendees” 'an array if more than one

appt.Subject = “some subject”

appt.Location = “some location”

appt.StartDateTime = someDateTime

appt.EndDateTime = someEndDateTime

appt.AppointmentType = “0” 'Appointment. Meeting is defined as 3

appt.Body = “detailed description of the event”

Call appt.Save(True,False) 'will save in the db it was created