How to use the data from a deleted Field Collection item in a Rule? My 'Article' nodes have a Field Collection, called 'Amounts', that contains an integer field. After deleting a Field Collection item, I'd like to substract some Userpoints from the node's author, based on the sum of the integers in the non-updated and updated node.
In order to do so, I created a Rule with the event &quot;After updating existing content of type Article&quot; in which I'm looping over 'Amounts' for the updated and non-updated node. The problem is that both loops use the data from the updated node (after the Field Collection item was deleted, that is), resulting in identical values.
Here's the Rule's output for a node that has 3 items with corresponding values 1, 2 and 3 after deleting the first item:

Non-updated node: Sum = 5. (This should be 6.)
Updated node: Sum = 5.

Is it possible to run the Rule before deleting the Field Collection item in order to be able to grab the necessary data values? Is there another way to use the deleted data?
Instead of trying to get access to the deleted value with Rules, it's easier to store the sum in a new hidden field, called "Sum". In that way, the 'old value' will always be available in any Rule. Just make sure that you update "Sum" when a new Field Collection item is saved or an existing item is deleted. That can easily be achieved with another Rule.