0

I'm using WordPress 4.9.8, CiviCRM to 5.4.0, CiviRules 2.1 and E-mail API 1.17.2

I've created a sequence email by CiviRules by steps:

Step 1: After user added to a group G, send email 1

Step 2: After 5' until user added to the group G, send email 2

Step 3: After 10' until user added to the group G, send email 3

If I've created this sequence from start, sequence email sended ok. But if I want to update this sequence by and step like this:

Step 4: After 200' until user added to the group G, send email 4

This sequence created about 15' until user added to the group G, but after 200', no email send to user.

I've tried tick or untick "Don't recheck condition upon processing of delayed action" but nothing happens.

enter image description here

What can I do to make a sequence email and this sequence can update with CiviCRM?


Update 08/08/2018 This is conditions of my CiviRule, I have 4 Rule like that picture, the difference are the number of delay minute and the template mail.

The rule of this picture is created after my user added to group "Thông tin hữu ích". The minutes my user add to this group < 200 minutes but my user can not received email send in the rule delayed 200 minutes enter image description here

6
  • 1
    Can you include a print of the conditions of your CiviRule? That might help to find out why your final mail is not sent. Aug 8, 2018 at 8:19
  • Thanks for reply. I've update in my question conditions of my CiviRule, I have 4 Rule like that picture, the difference are the number of delay minute and the template mail. The rule of this picture is created after my user added to group "Thông tin hữu ích". The minutes my user add to this group < 200 minutes but my user can not received email send in the rule delayed 200 minutes
    – ToanLuong
    Aug 8, 2018 at 9:14
  • I am unclear about : "The minutes my user add to this group < 200 minutes but my user can not received email send in the rule delayed 200 minutes"????? Aug 8, 2018 at 10:09
  • I mean that if I've created the rule delay 200 minute + send email before a user added to a group, after that, add user to group, the user will receive email. But if I add user to the group before create rule delay 200 minute + send email, user not received email (though time user added to group <200 minutes). Time 200 minute can change to 1 day, 1 week, 1 year. So I want user in group can receive email created to delay time in the future after the time the user added to group.
    – ToanLuong
    Aug 8, 2018 at 10:17
  • check my latest answer? Aug 8, 2018 at 10:26

1 Answer 1

1

enter image description hereI have a working CiviRule just like the one you are describing (I think) which works fine. I have not created 4 different rules but added different actions to the same rule. There is a blog post on this here: https://civicrm.org/blog/erikhommel/using-civirules-for-a-petition-journey-at-amnesty-international-vlaanderen

I have included a screenshot of my conditions. Can you see any differences which would explain your problem? I think you need both the group checks, The one (group is) acts on the parameter from the contact add to group, the other one checks if the contact is still in the group when sending mails (to allow the opt out if the contact no longer wants to receive mail).

I also think you'd be better off by adding all 4 actions to this rule rather than have 4 rules.

I will test with the delay of 200 minutes and see if there is a problem there.

9
  • Thanks for send useful link. The difference is what happen if you update actions? "the first mail will be sent immediately, the second after 7 days, the third after 14 days, the fourth after 21 days and the fifth after 28 days". If I add the sixth email after 35 day, exist user in "Brave" group can received this email? You can test by convert day to minute. Create rule, add user and update rule with new email, can exist user receive new email?
    – ToanLuong
    Aug 8, 2018 at 10:26
  • Yes, existing user can receive new email, no problem. I will test the 200 minutes but I do not expect that to be the problem. I think the issues lies within your conditions. Aug 8, 2018 at 10:27
  • I think the number 200 minutes is not the problem, too. I'll follow your guide in your link to investigate my problem, maybe in my conditions like you said. If you could, please check by create a rule send email to user add to a group (no need wait to 200 minute, only need some minutes). After that, add new email delay to the group, check if existing user in group can receive email. Thank you.
    – ToanLuong
    Aug 8, 2018 at 10:34
  • I am not sure what you are asking now :-) Do you mean you add an action to the rule once the rule is triggered already for a contact? In that case it will NOT send the mal. It decides what action to add to the queue based on the initial trigger. And I will try to test, but when I have time....which will probably be tomorrow. Aug 8, 2018 at 11:32
  • 1
    You are welcome :-) If you now want to send mails to the 'older' members of the group you can perhaps do a catch-up manual mail action? Or create an additional group 'ancientmembers' and send email 6 out to all members of both groups or something along that line. Aug 8, 2018 at 16:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.