<@U5TNEF7FW>, have you tried using the sudo enumer...
# suitescript
j
@karlenigma, have you tried using the sudo enumeration NetSuite has? like record.Type.LEAD?