Is there a easy place to lookup a comprehensive li...
# suitescript
d
Is there a easy place to lookup a comprehensive list of fields for a Record Type?
n
look at Record.getFields() in help (presuming you want the fields in code) and Record.getSublistFields(options)
d
ok I have one more stupid question, I know in SS1 to get the record id from a resultset record you would use .getId() however this doesn’t seem to work in SS2
What is the replacement method?
l
result.id
/app.netsuite.com/app/help/helpcenter.nl?fid=section_454656921386.html
n
if in doubt you can always JSON.stringify the object and log it to see what the object structure looks like.
d
yeah thats a little easier if I am trying to build out in console but since I am working in editor its not always the easiest way to do things
n
You can always just jump in to the debugger and run your code to a point you have the object you're interested in. Was just a suggestion your mileage may vary 😉