Stop repeating follow-ups
•
Version: 10
Some tooltip text!
• 1 minute to read
• 1 minute to read
When you stop a recurrence, all repetitions of the follow-up after the occurrence you edit are deleted.
If you cancel the recurrence of the 1st in a series, the pattern is deleted and the follow-up becomes a single appointment/call/task.
Integer aId = 234;
DateTime now;
NSAppointmentAgent appointmentAgent;
NSAppointmentEntity a = appointmentAgent.GetAppointmentEntity(aId);
NSRecurrenceInfo r = a.GetRecurrence();
if (r.GetIsRecurrence()) {
r.SetIsRecurrence(false);
r.SetPattern(0);
a.SetRecurrence(r);
a = appointmentAgent.SaveAppointmentEntity(a);
}