4

I've tried to create a rule where an email gets sent when a contact is "added" to a smart group. By "added" I mean the condition that smart group is based upon is met.

As far as I can tell it doesn't. It seems like it would be hard to do.

1 Answer 1

2

Contacts don't really get 'added' to a smart group - it's more that when the smart group is used, a search is run to find who currently meets those criteria (glossing over some complex rebuild and caching details...) So there is no specific event for CiviRules to react to in a post trigger.

You might be able to base something on the 'Daily trigger for group members' cron trigger and maybe modify it for a more frequent run. See https://docs.civicrm.org/civirules/en/latest/trigger/

6
  • 2
    Likewise a parent group doesn't work either
    – Paul-Tahoe
    Commented Oct 17, 2017 at 3:57
  • @Paul-Tahoe I would not want CiviRules to work with smart groups, it would get far too complicated for me :-) I think you could solve it by changing the smart group to a normal group and use CiviRules to manage the group membership? Commented Mar 6, 2018 at 16:13
  • @ErikH-CiviCooP is it still the case that CiviRule doesn't support smart group triggers? I'm seeing Smart Groups in the list of Groups for a trigger in 2.13.
    – Darren
    Commented Apr 6, 2020 at 11:06
  • AFAIK but test :-) It might be that it does work. Personally I do not use Smart Groups in combination with CiviRules.... Commented Apr 6, 2020 at 18:12
  • I used a smart group as the source for a daily trigger of group members and it worked.
    – Andy Burns
    Commented Jun 4, 2021 at 17:20

Your Answer

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

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