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:
- GetNewOrderDtl - to create a new line.
- Update required fields in OrderDtl.
- Update the dataset used to create the line.
- 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”.
- Update the dataset again.
Just let me know if you have any questions or suggestions!
Thanks
Nate