使用javascript

时间:2018-01-26 11:13:25

标签: activexobject

我发现此代码在IE中使用JavaScript在Outlook中创建约会:

var objOutlook = new ActiveXObject( "Outlook.Application" );
var olAppointmentItem = 1; //fixed for different properties of outlook object
var objAppointment = objOutlook.CreateItem(olAppointmentItem);
objAppointment.ReminderSet = true;
objAppointment.Categories = 'Yellow Category';
objAppointment.Subject = "subject";
objAppointment.Location = 'My Location';

objAppointment.Start = "Januar 26, 2018 12:30:00";
var duration = 30;
objAppointment.Duration = duration; 
objAppointment.Save();

它有效,但可以搜索现有的约会和/或删除现有的约会吗?

0 个答案:

没有答案