Discussions
Inbound template json
Hi all, I have in Netsuite an inbound e-document template json format for mapping a xml file, but it does not working.
Does anybody know how to map xml with json dynamically?
I am taking a sample from Netsuite.
{
"tranid": "${XML.Comprobante.Folio}",
"trandate": "${XML.Invoice.InvoiceHeader.InvoiceDate}",
"createdfrom": "${XML.Invoice.InvoiceHeader.PONumber}",
"item":[
<#list XML.Invoice.InvoiceDetails.InvoiceItem as item>
{
"vendorcode": "${item.ItemName}",
"quantity": "${item.Quantity}",
"amount": "${item.LineItemSubtotal?replace("$", "")}",
"tax1amt": "${item.TaxAmount?replace("$", "")}"
}
<#if item_has_next>,</#if>
</#list>
]
}
Does anybody know how to map xml with json dynamically?
Thanks.