7. Juni 2021 16:03
8. Juni 2021 17:20
outlookAppItem.GlobalAppointmentID
outlookNamespace.GetItemFromID()
11. Juni 2021 15:46
olItemType := olItemType.olAppointmentItem;
olApplication := olApplicationClass.ApplicationClass();
olAppointment := olAppointmentClass;
olAppointment := olApplication.CreateItem(olItemType);
olAppointment.Subject := 'Testeintrag';
olAppointment.Body := 'Testtext';
// olAppointment.Location := 'Ort';
// Set the start date
olAppointment.StartUTC := CREATEDATETIME(TODAY,180000T);
// End date
olAppointment.EndUTC := CREATEDATETIME(TODAY,183000T);
olAppointment.ReminderSet := TRUE;
olAppointment.ReminderMinutesBeforeStart := 15;
olAppointment.ReminderPlaySound := TRUE;
olAppointment.Save();
gtxAppointmenEntryID := olAppointment.EntryID;
olApplication := olApplicationClass.ApplicationClass();
olAppointment := olAppointmentClass;
olNamespace := olApplication.GetNamespace('MAPI');
olAppointment := olNamespace.GetItemFromID(gtxAppointmenEntryID,NonInitializedVariant);
// Die Variant-Variable ist notwendig, weil die GetItemFromID-Methode mit zwei Parametern aufgerufen werden muss: EntryID und StoreID - Die StoreID ist dabei optional
olAppointment.Subject := 'Geänderter Testeintrag';
olAppointment.Body := 'Testtext';
// olAppointment.Location := 'Ort';
// Set the start date
olAppointment.StartUTC := CREATEDATETIME(TODAY,183000T);
// End date
olAppointment.EndUTC := CREATEDATETIME(TODAY,190000T);
olAppointment.ReminderSet := TRUE;
olAppointment.ReminderMinutesBeforeStart := 15;
olAppointment.ReminderPlaySound := TRUE;
olAppointment.Save();
gtxAppointmenEntryID : Text;
olApplication : DotNet "'Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.Microsoft.Office.Interop.Outlook.Application" RUNONCLIENT;
olApplicationClass : DotNet "'Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.Microsoft.Office.Interop.Outlook.ApplicationClass" RUNONCLIENT;
olAppointment : DotNet "'Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.Microsoft.Office.Interop.Outlook.AppointmentItem" RUNONCLIENT;
olAppointmentClass : DotNet "'Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.Microsoft.Office.Interop.Outlook.AppointmentItemClass" RUNONCLIENT;
olItemType : DotNet "'Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.Microsoft.Office.Interop.Outlook.OlItemType" RUNONCLIENT;
olNamespace : DotNet "'Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.Microsoft.Office.Interop.Outlook.NameSpace" RUNONCLIENT;
NonInitializedVariant : Variant;
11. Juni 2021 16:22