Business Object function with Array type payload or runtime json
Summary:
This is regarding the following implementation scenario in Oracle AI Agent Studio.
We have a requirement to create Sales Orders based on an input file. In the Agent Workflow, the file is processed, and the Sales Order header and line information are read and transformed into a JSON payload.
The generated payload contains a single Sales Order Header along with multiple Sales Order Lines. To create the Sales Order, we have configured a Business Object action using a sample JSON payload and defined the following input parameters:
Header Attributes
- Order Number
- Currency
Line Attributes
- Part Number
- Quantity
- UOM
Currently, the design works successfully when the Sales Order contains only a single line, and the mapped values are correctly passed from the Agent Workflow to the Business Object.