Complete orders

For my assignment, I have to fix user stories for a webshop with a few unfinished details.   in this step, I’m required to fix a faulty button that is supposed to update a customer’s order status from “submitted” to “completed”. in the order parameter, I created a microflow, yet it still doesn’t update the order status upon pressing the “Complete order” button. Am I missing anything here? Thanks a lot!  
2 answers

If you notice you Microflow carefully you are changing the input param Order but you are committing another object(s) or list int he commit activity in the end.

So you can assume: the Input Param Order and the OrderList though are theoritically same data BUT they are separate instances. So you are changing 1 instance but committing another which obviously does nothing.


So you have to change the correct instance and commit the correct instance.


Remove the OrderList getting and orderlist commit actions. In your existing Change action on Order object, choose the options Commit to YES and refresh in client to YES. That should do it.


Good luck.




Hi Jam,


If you want to the change the status of all this orders then you would need a for loop.

In this for loop change for each order in orderlist the status to completed.

A for loop is the blue activity on the top. It literater over each object in your list.


If you want to change the status of only one order (your yellow parameter in your microflow) then just change the status of the one order.

You can do it with a change object activity.


Hope this helps,