Answers.Body: <p>Changing the trigger to 'contribution is changed' seems to have worked.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-21T21:17:45.597Z
Answers.LastActivityDate: 2022-11-21T21:17:45.597Z
Answers.UserDisplayName: erin
Body: <p>I am trying to setup a rule to notify donors and staff when a payment fails, but for some reason I can't get the trigger to work.  Trigger is &quot;contribution added&quot; and condition is &quot;contribution status = failed&quot; (we use moneris for online payments and it does add a contribution record with status failed)</p>
  <p>In the email message there are 2 &quot;from&quot; fields.  I can manually type an email in one, the other is a drop-down list.  However, only one email shows in the drop-down when we have dozens saved in the FROM email addresses setup.</p>
  <p><a href="https://i.sstatic.net/mGw1Q.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/mGw1Q.png" alt="enter image description here" /></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-04T18:45:54.163Z
Comments.Text: would this be a useful alternative? https://github.com/fuzionnz/nz.co.fuzion.incompletepaymentalert
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-04T19:29:46.330Z
Comments.Text: I would try adding a failed contribution manually to see if that triggers the rule. It may be that the contribution is first being created and then set to failed after or something like that.
Comments.UserDisplayName: Lars SG
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-04T20:27:41.457Z
Comments.Text: @LarsSG you are right - I manually added a failed contribution and it triggered the civirule. I think if I change my trigger to "contribution is changed" it might work
Comments.UserDisplayName: erin
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-04T20:29:18.547Z
Comments.Text: @petednz-fuzion thanks, but I would like to notify the donor (especially for recurring donations that fail) as well as notify staff
Comments.UserDisplayName: erin
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-04T21:06:11.697Z
Comments.Text: that could be something we could add in as an option on the above extension if there was a bit of funding.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-07T09:17:14.827Z
Comments.Text: @erin - did changing the rule to 'Contribution is changed' work?  I expect it would since contributions should be initially created as 'status = pending' and then updated.  If that works, please add it as answer
Comments.UserDisplayName: Aidan
Tags: <civirules>
Title: CiviRule not triggering
ThreadText: # CiviRule not triggering
  
  (Asked by: username_0 on 2022-11-04)
  
  I am trying to setup a rule to notify donors and staff when a payment fails, but for some reason I can't get the trigger to work. Trigger is "contribution added" and condition is "contribution status = failed" (we use moneris for online payments and it does add a contribution record with status failed)
  
  In the email message there are 2 "from" fields. I can manually type an email in one, the other is a drop-down list. However, only one email shows in the drop-down when we have dozens saved in the FROM email addresses setup.
  
  [![enter image description here](https://i.sstatic.net/mGw1Q.png)](https://i.sstatic.net/mGw1Q.png)
  
  **Tags:** civirules
  
  > **Comments:**
  > **username_1**: would this be a useful alternative? https://github.com/fuzionnz/nz.co.username_1.incompletepaymentalert  
  > **username_2**: I would try adding a failed contribution manually to see if that triggers the rule. It may be that the contribution is first being created and then set to failed after or something like that.  
  > **username_0**: @username_2 you are right - I manually added a failed contribution and it triggered the civirule. I think if I change my trigger to "contribution is changed" it might work  
  > **username_0**: @username_1 thanks, but I would like to notify the donor (especially for recurring donations that fail) as well as notify staff  
  > **username_1**: that could be something we could add in as an option on the above extension if there was a bit of funding.  
  > **username_3**: @username_0 - did changing the rule to 'Contribution is changed' work?  I expect it would since contributions should be initially created as 'status = pending' and then updated.  If that works, please add it as answer  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2022-11-21. Score: 2
  
  Changing the trigger to 'contribution is changed' seems to have worked.
  
  
  ---
  
  