Hello, is it possible to get the transaction type ...
# suitescript
p
Hello, is it possible to get the transaction type with a validateLine function? thank you
e
the transaction type of the current record?
p
yes
s
Not sure why you would need it but type is pretty much always on the context object... like
context.currentRecord.type
I would imagine
e
and if that isn't available, it looks like you could use
Copy code
context.currentRecord.getValue({
    fieldId: "type"
})
p
thank you