Hi folks,
I am trying to create a document flow in which a SalesOrder BOD is submitted, and passed to API OIS100MI/AddBatchHead, then passed to OIS100MI/AddBatchLine. I set this up by having in my Document Flow an API connection point for OIS100MI/AddBatchHead, then another one after it for OIS100MI/AddBatchLine. This seemed to me the most logical way to do it. Two questions:
1. Is it necessary to place two API connection points in my flow, as I have done, or can it be done with one?
2. If two are needed, how can I get the Temporary Order Number (ORNO) that should be returned from the AddBatchHead call and place it in the SalesOrder BOD such that it can be used by the AddBatchLine call in the subsequent Connection Point?
Hope this all makes sense. Essentially, it's about how to call related, dependent API calls to insert Master/Detail data (in this case, Head and Line.)
Thanks
Jack
PS: I have the suspicion that I have to do this within an ION Workflow, but would love to hear of an easier way.