Netsuite Programming Tips


  • Record Browser and Help center do not have complete documentation about some entities.  Loading Such objects in debugger shows all the fields and sublist for the entity.
  • Searching for any entity programmatically brings the records which are marked as ‘inactive’. Inactive entities can not be referenced by other entities.
  • Always initialize ‘nlobjSearchFilter’ and ‘nlobjSearchColumn’ with the ‘new’ keyword. Otherwise it creates unexpected errors.
  • Be careful when doing number calculations as Suitscript (actually Javascript Engines) some times concatenates the number instead of adding them.  ParseInt and ParseFloat functions can help in this scenario.
  • Floating Point numbers also cause Precision problems ( http://stackoverflow.com/questions/588004/is-javascripts-math-broken )
  • Api.js is also a great help ( https://system.netsuite.com/app/common/scripting/nlapihandler.nl?downloadapi=T )
  • As SuiteScript is based on JavaScript, so read Javascript books to master in suiteScript.
Advertisements

I am a web developer working @ Gaditek

Tagged with: , , , ,
Posted in Netsuite, Programming & Development
3 comments on “Netsuite Programming Tips
  1. Joe Son says:

    I also found this to be pretty useful:
    1. Script searching doesn’t allow sorting or usage of “OR” in the criteria. So create Saved Search and reference it. This way you can sort as well as use OR.
    2. nlapiSubmitField is your best friend. When governance becomes an issue, instead of loading records, use nlapiSubmitField to update field values. It can take array of fields and values so you can update multiple fields with only 10 usage governance.

  2. […] All Fields January 18, 2012 — dreamxtream As I have mentioned in my earlier post, NetSuite Debugger is a great tool to find the undocumented details about the entities . Another […]

  3. Get More Info says:

    It’s an amazing article designed for all the internet viewers; they will take advantage from it I am sure.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

About me
A geek trying to make world a better place to live.

I mostly work on Web Technologies like PHP, Javascript. I also work on Python, GAE and Netsuite Customization. Currently working @ Cloudways

Profile Links Linkedin | Github | Stackoverflow
Subscribe to this blog
%d bloggers like this: