This is because in activity “Change Object” you can not retrieve new data. If you could, the Xpath would be
$NutritionTracker/Quantity * $NutritionTracker/$NutritionTracker_$NutritionInventory/CaloriesPerUnit
But you will see the last ‘/’ turn red. Your solution is correct: first retrieve the new data, then “Change Object”
Here is the solution:
I don’t think there is a valid xpath to get to the caloriesperunit attribute
So...
You need to retrieve nutritioninventory record by association using:
Then in the Change object, to calculate the new caloriesBurned:
So please advise if there is a better way to do this.
Thanks,
Daniel