How can I check for a record type? I tried <#if record.type == 'INVOICE'> and it does not work. Is record.type callable?
Figured it out: <#list record.lines as line><#if line.description?contains("Invoice")>
d
David B
12/05/2022, 8:08 PM
if you haven't already got it, go grab Michoel Chaikin's chrome extension NetSuite Field Explorer.
Using it, you can see the value you want to check for is
custinvc
so
<#if record.type == 'custinvc'>
j
Jared Fraley
12/05/2022, 8:11 PM
Amazing, thank you.
👍 1
n
NElliott
12/06/2022, 10:56 AM
have you tried using record.recordType too?
Looking at the image I suspect you could use that and "invoice"