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. 

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 3 (Jul-Sep 2025)

This Week's Leaders

This Month's Leaders

All Time Leaders