Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Ambroise A on
Hi,
I have a node type where one of the fields can contains one or more entity references. I create this rule: when a node is created, fetch the first entity mentioned in the field, then if the value of one of its field is true, sent an email. Then fetch the second entity, if the value of one of its field is true, react with another action, etc...
What happens when you fetch the second entity and there is no second entity? Does the part of the rule depending on it is just ignored or does it creates problems that I might not see?
Comments
Are you using a loop in rules
Are you using a loop in rules to read the fields values?
Yes, I have re-organised my
Yes, I have re-organised my rule, like on this screenshot: http://imgur.com/k74Zkeb
I'm not familiar with loops in rule. Is it set up properly, to sent one email to each user mentioned in the entity reference field? In this configuration, does the loop ends on its own, when there is no more entity referenced or do I need to add something?
Thanks for your help!
The loop will end on its own
The loop will end on its own after the last entry for the field.