Subject: Hot to create new calendar entry from C# code.
Our customers have been using using Proposion N2N to create Calendar Entries for years now. Proposion N2N is an ADO.NET data driver that provides powerful, but fairly low-level, access to elements to Notes databases. Here is an example of an N2N command that creates an Appointment in a Notes database:
INSERT INTO Appointment SET AppointmentType=@AppointmentType, Principal=@Principal, Chair=@Chair, Subject=@Subject, Location=@Location, EndDate=@EndDate, EndTime=@EndTime, EndDateTime=@EndDateTime, StartDate=@StartDate, StartTime=@StartTime, StartDateTime=@StartDateTime, CalendarDateTime=@CalendarDateTime, ExcludeFromView=@ExcludeFromView, _ViewIcon=@ViewIcon, Body=RICHTEXT(@Body) RETURN UNID()"
As Stan explained in his post, figuring out what Notes items to set to achieve various types of C&S functionality can be rather daunting. The above example works for basic things, but does not handle Repeating Entries, Alarms, Meeting invitations, etc. To do this, you need to add additional items using the table in the link Stan provided.
But all this is about to change! In Proposion N2N 3.0 (currently in beta) we are adding a new set of wraper classes called “Collaboration Objects” which make all this a whole lot easier. This is a set of high-level objects called MailEntry, CalendarEntry, TaskEntry, ContactEntry and so on which make reading and writing standard Notes things a whole lot easier. You do not need to learn ADO.NET or the innards of how Notes C&S elements are stored.
For details, see Products A-Z or visit booth #323 at Lotusphere.
Here