Answers.Body: <p>The extension CiviRules is maybe an option. You can find it in the extension directory <a href="https://civicrm.org/extensions/civirules" rel="nofollow noreferrer">https://civicrm.org/extensions/civirules</a> and the latest documentation is at <a href="https://docs.civicrm.org/civirules/en/latest/" rel="nofollow noreferrer">https://docs.civicrm.org/civirules/en/latest/</a> .</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-24T14:29:48.433Z
Answers.Text: This may be the best option in this particular case, because CiviCRM Entity has its Rules event triggered in hook_civicrm_post(), in which case the original entity has already been altered in the db, and there's really no way to look back.
Answers.UserDisplayName: jackrabbithanna
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-24T06:07:31.173Z
Answers.LastActivityDate: 2017-08-24T06:07:31.173Z
Answers.UserDisplayName: Kainuk - CiviCooP
Body: <p>I'm wondering if it is possible to use the Drupal Rules module with CiviCRM Entity to send me an email when, for example, someone has taken an action (like made a donation) that updated the contact record and (for example) changed their first name. I can see a trigger "Before updating a civicrm contact" that then offer "Changed" and "Unchanged" values which could be compared (Condition: data comparison) but, that trigger does not seem to work? Any ideas?</p>
  
Tags: <civicrm-entity><drupal-rules>
Title: Can Drupal be used to send an email if an existing contact's name is changed
ThreadText: # Can Drupal be used to send an email if an existing contact's name is changed
  
  (Asked by: username_0 on 2017-08-24)
  
  I'm wondering if it is possible to use the Drupal Rules module with CiviCRM Entity to send me an email when, for example, someone has taken an action (like made a donation) that updated the contact record and (for example) changed their first name. I can see a trigger "Before updating a civicrm contact" that then offer "Changed" and "Unchanged" values which could be compared (Condition: data comparison) but, that trigger does not seem to work? Any ideas?
  
  **Tags:** civicrm-entity, drupal-rules
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-08-24. Score: 1
  
  The extension CiviRules is maybe an option. You can find it in the extension directory <https://civicrm.org/extensions/civirules> and the latest documentation is at <https://docs.civicrm.org/civirules/en/latest/> .
  
  > **Comments:**
  > **username_2**: This may be the best option in this particular case, because CiviCRM Entity has its Rules event triggered in hook_civicrm_post(), in which case the original entity has already been altered in the db, and there's really no way to look back.  
  
  ---
  
  