I have created a RULES loop. It loops over a set of flagged nodes (using the action 'Fetch Node flagged by user') and attempts to create a new node for each flagged node. Finally, the new node is linked to its related 'loop' node via entity reference.
My problem is: The action that creates the new node ('Create a new entity', which is called within the loop) assigns the new node to a static variable name (mine is: entity_created). Because of this, the loop only creates one new node and only saves data from the final loop node into it.
Is there a way to either create this variable dynamically or is there a way to reset the value of entity_created so that it can be used to create multiple nodes?