Update a list of things not working

I would like to update a Product stockQuantity after that a user passed an Order.

Do I have an Order object
Order Object Contains OrderItems
Every OrderItem contains Product object.
Also every OrderItem contains a quantity which represents the quantity ordered of a product.
Product object contains ProductStockQuantity.

I would like so after an Order Passed, to get all the OrderItems of an Order and update every corresponding Product the productStockQuantity of it .

Here’s my workflow.

The filtered window

What I’m trying to do is :
Update the productStockQuantity by substracting the Quantity of every OrderItem product from the product’s actual productStockQuantity in DB

But I don’t understand what represents the “this order Item” element in the filtered popup ?

When I test this I get the filtered list as Empty :

(structure of Order )

why I’m getting the filtered list empty ?
How can I update the ProductStockQuantity ?

This topic was automatically closed after 70 days. New replies are no longer allowed.