0

Create JSON file for line items
Hi there,
I want to send my invoice data to a third party accounting tool. Therefore, I want to iterate my Ninox invoice line items, transform them to JSON and send the JSON via REST API to the other tool. I don't get how I can create the array of invoice line items. I know how I can define 1 line item, but not how I can create the array with the multiple line items.
My target format:
[{
item: "1",
description:"ABC"
}, {
item: "2",
description:"DEF"
}
]
How do I create / iterate / "fill" my array?
Many thanks!
Fabi
Like Follow
5replies