Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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.Invoice.InvoiceHeader.InvoiceNumber}",
"trandate": "${XML.Invoice.InvoiceHeader.InvoiceDate}",
"currency": "${XML.Invoice.InvoiceHeader.Currency}",
"memo": "${XML.Invoice.InvoiceHeader.Memo}",
"createdfrom": "${XML.Invoice.InvoiceHeader.PONumber}",
"item":[
<#list XML.Invoice.InvoiceDetails.InvoiceItem as item>
{
"vendorcode": "${item.ItemName}",
"quantity": "${item.Quantity}",
"rate": "${item.UnitPrice?replace("$", "")}",
"amount": "${item.LineItemSubtotal?replace("$", "")}",
"description": "${item.Description}",
"tax1amt": "${item.TaxAmount?replace("$", "")}"
}
<#if item_has_next>,</#if>
</#list>