Create new line and release from UBAQ custom code

I figured it out! I had to update the dataset after GetNewOrderDtl. Then I could just find the new line and update the first record in it. Seems obvious now, but it took me a while to get here!
It goes something like this:

  1. GetNewOrderDtl - to create a new line.
  2. Update required fields in OrderDtl.
  3. Update the dataset used to create the line.
  4. Update the OrderRel table in the dataset by filtering by the new line number, and the first release, don’t forget to set rowmod=“U”.
  5. Update the dataset again.

Just let me know if you have any questions or suggestions!
Thanks
Nate

1 Like