Posted on 10/05/2017 09:09:49
Hi Dmitriy
What i am trying to say in my post is that of course i am running all my custom code in the RunJob method, basically i am taking all the orders in dynamicweb with the built in Order Provider, then i pass them into my custom Destination provider, then u run through each order and check if that order is created in the CRM system, if it is not, then i create it there, if it is, i check its pipeline level and adjust my orders OrderState accordingly, for an example a pipeline level of 1 is = OS11 and level 2 = OS12 and so on, and each time i run through an order and update the OrderState, i can see after i save my order that the OrderState has changed in the Database, but then as soon as a return true after the RunJob is complete, all orders are set back to their default OrderState e.g. OS11.
Hope i made myself a bit more clear