Order.Order_Service service = new Order.Order_Service(); service.UseDefaultCredentials = true; Order.Order order = new Order.Order(); order.No = "WEB023"; service.Create(ref order); order.Sell_to_Customer_No = "09864534"; //order.SalesLines = new Order.Sales_Order_Line[5]; //for (int i = 0; i < 5; i++) // order.SalesLines[i] = new Order.Sales_Order_Line(); try { service.Update(ref order); } catch (Exception ex) { }
Comments
I suggest you begin to use DebugMode with the middle tier services. You will certainly find it useful in the future, particularly if you have custom code in your NAV triggers.
here, you will find the procedure to that: http://blogs.msdn.com/b/nav/archive/200 ... -2009.aspx