// Create an appointment and set the subject and start date. var appointment = oWebScheduleInfo1.getActivities().createActivity(); appointment.setStartDateTime(new Date()); appointment.setSubject("My Recurring Appointment"); // Create the recurrence object from the appointment. var recurrence = appointment.createRecurrence(); // Set up your recurrence object. This recurring appointment will // occur daily for three days. recurrence.setPeriod(0); recurrence.setPeriodMultiple(1); recurrence.setMaxOccurrences(3); // Set the Recurrence object of your activity to the recurrence you've just created. appointment.setRecurrence(recurrence); // Add the appointment to the Activities collection. oWebScheduleInfo1.addActivity(appointment,"");