Hello everyone,
I’m trying to insert Calendar entries into our user’s calendars via LotusScript from another database. I recently upgraded to R8, and I’m having problems getting the Calendar entries to show up now, although it looks like they are being saved properly and in the correct mailfile.
Here’s an exerpt of the current code:
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = ws.CurrentDocument 'Dates for appointments come from current DB
'excluded code: Getting the dbMailFile from NAB
Set docnab = dbMailFile.CreateDocument
docNab.Form = “Appointment”
docNab.Subject = “SubjectField”
docNab.AppointmentType = “2”
docNab.StartDateTime = uidoc.FieldGettext(“Date”) + " 08:00 CET"
docnab.endDateTime = uidoc.FieldGettext(“theDate”) + " 17:00 CET"
docnab.StartDate = uidoc.FieldGettext(“theDate”)
docnab.EndDate = uidoc.FieldGettext(“theDate”)
docnab.Principal = uidoc.Fieldgettext(“Verlof_Aanvrager”)
docnab.CalendarDateTime = uidoc.FieldGettext(“theDate”)
docnab.excludeFromView = “D”
doc.SaveOptions = “”
Call docnab.save(True,True)
Does anybody have any ideas on what I’m forgetting or doing wrong?
Thank you for the feedback.