Friday, April 29, 2011

NetSuite - Scripting/Debugging Tips I've learned so far

We've MOVED!!!! www.codeboxllc.com/ksc

NetSuites' SuiteScript is JavaScript based language which allows developers to really get down and dirty with truly customize NetSuite.

Like finger prints, not all businesses are alike. NetSuite tries pretty hard to meet the requirements of each and every businesses that are out there but it's an impossible task. That's why they have SuiteScript to build out your own, business specific customizations.

Here are some tips on scripting/customizing/debugging that I've picked up so far:
  1. Download and install Chrome or FireFox. JavaScript Debugger, Firebug is a must have tool. It allows you to set break points so that you can successfully debug your custom scripts.
  2. Take advantage of NetSuite Debugger. This is really good for unit testing your code. Write snippets of your code and execute it on NetSuite Debugger and verify your script behaves properly.
  3. Abstract out common functions and create utility script. I'm sure everyone is already doing this. I mean who really wants to write out nlapiLogExecution or nlapiSendEmail?!?!?!!?! Way too long!
  4. Unless you HAVE to... avoid using nlapiLoadRecord. If you are doing simple field value search or field updates, nlapiLookupField and nlapiSubmitField will do just fine. Only time I found myself using nlapiLoadRecord is when I had to drill down to sublists. I'm really hoping NetSuite will come up with function to do just this
  5. For Webstore customization, get to know what IS customizable. I recently had to customize login pages text and links on our Webstore. It turns out, all the text and links are customizable through Setup > Website > Customize Text
    If you are going to use Webstore, it really REALLY helps to purchase Advanced Web Module. 
Ok.. That's what I have so far...  

6 comments:

  1. Hi, do you do these NetSuite development services as a freelance consultant? We're looking for outsource resources for NetSuite project work.

    Contact me at craig(at)audaxium(dot)com

    ReplyDelete
  2. Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates. instead of sincerely

    ReplyDelete
  3. Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates. instead of sincerely

    ReplyDelete
  4. We are tied directly into the sate’s renewal database which allows us to process your request almost instantly. buy essays cold canvassing meaning

    ReplyDelete
  5. This is an awesome motivating article.I am practically satisfied with your great work.You put truly extremely supportive data. Keep it up. Continue blogging. Hoping to perusing your next post ortho press n set mouse trap

    ReplyDelete
  6. Super site! I am Loving it!! Will return once more, Im taking your food likewise, Thanks. cups in a gallon

    ReplyDelete