Business Object Function - return array with multiple records
SummaryBusiness Object Function - return array with multiple records to pass to web service
I have BO called, TrxHdrs, with multiple records. I know I can create a BO Object Function to iterate over those records.
What I would like to do is write records that, for example, have a Status of, "available", to an array. I want to write the entire record where the criterion is met. Then I would like to pass the result (with multiple rows) to a web service (integration cloud) that sends it to ERP Cloud. The only thing I need help with is how to create an array with multiple records in groovy. The array will be structured to match what is expected by the web service.