Clean Up Old Calendar Entry's
grow very large and take to long to create replicas.
Create an agent, then a action button to run that agent in the all document
view...
REM "Delete any Calendar Entry's that are older than 31 days.";
SELECT FORM = "Appointment";
PurgeDate := @Adjust(@Date(@Now); 0; 0; -31; 0; 0; 0);
StartDate := @Date($NoPurge);
RepeatDate := @If(@IsAvailable(RepeatUntil) ;@Date(RepeatUntil); "");
@If((RepeatDate = "" & (StartDate > PurgeDate)) ; @Return(false);
@DeleteDocument)