I am stumped on how to include the itemid, upccode...
# advancedpdf
t
I am stumped on how to include the itemid, upccode, and vendorname on a Purchase Order HTML Template for each line item included in the items table. I've tried "record.itemid", "record.item.itemid", and just "itemid", but all of them show up as blank. Can anyone tell me what I'm missing?
m
Try adding
&xml=T
to the end of the url of a record and search for the field values to find the field names. You can also use this extension (shameless plug 😃 ). https://chrome.google.com/webstore/detail/netsuite-field-explorer/cekalaapeajnlhphgdpmngmollojdfnd?hl=en
🙏 1
For item fields that aren't available in the transaction record, you have to create custom transaction line fields to source them in.
1
s
It should be item.itemid. Look out for <#list record.item as item><#if item_index==0> right above the item table
Copy code
<td colspan="3" style="width:20%">Sku: ${item.itemid}<br />UPC: ${item.upccode}<br />VSku: ${item.vendorname}</td>
that should fix your issue