Answers.Body: <p>I've run into this issue before -- setup a scheduled reminder to follow up after events, and had it sent for all past events.</p>
  
  <p>Personally I think this is a bug, and that we should define a window of time that the reminder is restricted to, in order to limit how far into the past it processes records.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-26T22:12:49.313Z
Answers.Text: actually i think we created a fix for EVents - hmm - https://issues.civicrm.org/jira/browse/CRM-20480 shows as PR Declined - https://github.com/civicrm/civicrm-core/pull/10255 - want to give it a bump?
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-26T22:16:24.843Z
Answers.Text: Any my question had been specific to Activities as I thought the Event concern had been fixed.
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-26T20:39:22.700Z
Answers.LastActivityDate: 2018-03-26T20:39:22.700Z
Answers.UserDisplayName: lcdservices
Body: <p>Steps:</p>
  
  <p>Created a Scheduled Reminder (SR) for 
  Entity = Activity
  Type = Email
  Status = Completed
  When = 1 hour after Activity Date Time
  Recipients = Activity Assignees</p>
  
  <p>When this was saved I created an email activity for myself. And then ran the scheduled job of ‘Send Scheduled Reminders’.</p>
  
  <p>In addition to an SR going out for the new email activity, my Contact record had two completed email activities from the day before the creation of the scheduled reminder (and hence well beyond the "1 hour").</p>
  
  <p>The result of running the scheduled job was an scheduled reminder sent for each of the two email activities from the day before. As well as one for the new email activity one hour after the activity date time.</p>
  
  <p>Is the sending of scheduled reminders for historical activities expected behaviour? if not, are there steps via UI we should be taking to avoid this happening (other than devious ones of creating new Activity Types etc) or is this a bug that needs fixing.</p>
  
  <p>My recollection is we have hit other nasty surprises of SRs going out to things that were way past, such as old Events.</p>
  
Tags: <activities><scheduled-reminders>
Title: Should new Scheduled Reminders (based on Activity Type = Email) send out to Emails created in the past?
ThreadText: # Should new Scheduled Reminders (based on Activity Type = Email) send out to Emails created in the past?
  
  (Asked by: username_0 on 2018-03-01)
  
  Steps:
  
  Created a Scheduled Reminder (SR) for
  Entity = Activity
  Type = Email
  Status = Completed
  When = 1 hour after Activity Date Time
  Recipients = Activity Assignees
  
  When this was saved I created an email activity for myself. And then ran the scheduled job of ‘Send Scheduled Reminders’.
  
  In addition to an SR going out for the new email activity, my Contact record had two completed email activities from the day before the creation of the scheduled reminder (and hence well beyond the "1 hour").
  
  The result of running the scheduled job was an scheduled reminder sent for each of the two email activities from the day before. As well as one for the new email activity one hour after the activity date time.
  
  Is the sending of scheduled reminders for historical activities expected behaviour? if not, are there steps via UI we should be taking to avoid this happening (other than devious ones of creating new Activity Types etc) or is this a bug that needs fixing.
  
  My recollection is we have hit other nasty surprises of SRs going out to things that were way past, such as old Events.
  
  **Tags:** activities, scheduled-reminders
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-03-26. Score: 1
  
  I've run into this issue before -- setup a scheduled reminder to follow up after events, and had it sent for all past events.
  
  Personally I think this is a bug, and that we should define a window of time that the reminder is restricted to, in order to limit how far into the past it processes records.
  
  > **Comments:**
  > **username_0**: actually i think we created a fix for EVents - hmm - https://issues.civicrm.org/jira/browse/CRM-20480 shows as PR Declined - https://github.com/civicrm/civicrm-core/pull/10255 - want to give it a bump?  
  > **username_0**: Any my question had been specific to Activities as I thought the Event concern had been fixed.  
  
  ---
  
  