When my customer place an order, he sends me a .csv with a new po number. I have to update it. I have tried using OESXAPIorderchageV2 without success. I know it has to be executed twice but it does not work. Is there another solution ?
oeorderchange should be the right API. Like you said, its a two-pass operation. The first pass you send in the company and order id and you should get back the current order data.
The trick, as far as I am aware, is that you have to turn this data back around as-is, just with your changes represented. So all the data you get back from the first call, you have to use as part of the json in the second pass request, with your customer PO change included.
ok thks I will try
I have tried but no success. There is clearly something I don't understand.
I have sent the first pass. I got the response. What do I need to do next ? send the response exactly as it is (only change the customer po) or I need to modifiy the json?
Nathalie - The just of it is that you get the response with all of the OUT nodes and values. You transform the response back into a request with IN nodes and values. Below is a screenshot of the response on the left and the request on the right. You would map all of the sections on the left to the proper section on the right. Then add your pono value and send the request.