I am trying to create and link a work order to an existing customer order. This works using the code below, but I would like to be able to assign the work order number to be the same as the customer order number instead of using the next sequential number. Is this possible?
Alternatively, I could create the work order separately, but then is it possible to link the work order and customer order using the API?
Dim CO As New CustomerOrder
CO.Load("1171750")
Dim drline As Lsa.Data.DataRow
drline = CO.Tables("CUST_ORDER_LINE").Rows(0)
drline("NEW_WO") = True
CO.Save()
Thanks for any help you provide!