How to append item to the Line Items Array

I’m creating an Invoice on Quickbooks using Array Aggregator and I would like to add another line item (Shipping Cost) to the Line Items Array.

This is the JSON value of Shipping Cost that I’m trying to add “7 - Array Aggregator” output array. How can I do this?

{
“Amount”: 32,
“DetailType”: “SalesItemLineDetail”,
“SalesItemLineDetail”: {
“ItemRef”: {
“value”: “SHIPPING_ITEM_ID”
}
}
}

Hey Mehmet!

I’d say the way to go is to use a Parse JSON or Create JSON module to generate a single line item like this:


image

Then you can just use the add function:

Here’s a little blueprint you can import to take a closer look!
blueprint (10).json (5.0 KB)