I have a restlet. I want to create and cross-link ...
# suitescript
g
I have a restlet. I want to create and cross-link two records. 1. I create a purchase order, save it. Get the ID as a return of the save. 2. I create a work order, set a value on the work order to reference the PO to that PO id value. 3. I then save that work order in order to get the ID as the return of the save. 4. I then set the purchaseOrder.setValue(...) to that ID, and try purchaseOrder.save() 5. This errors about duplicate records and aborting the save.