Repeated Nested Arrays

I’m trying to integrate an invoice generator with their API and ran into issue with the nested arrays.

invoice {
///some fields here////
 invoice_items {
  item [
   description: "<description>",
   qty: <qty>,
   unit_price: <price_unit>
     ]
   }
}

The above JSON Code is what I’m currently put in the JSON Body of API connector, and the fields are dynamic. The API call is currently set as an action so I able to access it in the Workflow under Plugins.

However; I can’t come up a way to repeat the ITEM object with it’s arrays more than one time in the workflow based on the User input of Items in the client side.

User can add more items by clicking “+” button in the User interface and input the data into fields.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.