oh role might be a record then - try var role = nl...
# suitescript
m
oh role might be a record then - try var role = nlapiLookupField('role', id, 'role')