Netsuite Best Practices

Hello dear reader,

Netsuite Best Practices
Netsuite Best Practices



We are adding best practices we can use while writing code in Netsuite or creating objects as functional/admin.

Good to use:

1. Always test your code before deploying it to production or releasing it.
2. Use lowercase for all records, fields, sublists, tabs , subtabs and every object ids.
3. prefix underscore (_) , you can use some pattern to keep it unique like _name_purpose_type
4. Never hard-code any password in script.
5. Use proper Error handling.
6. Try to make functions to reuse code if needed.
7. If you are building Apps , use different folder with unique name.
8. Use builtin functions, if not available then use custom functions developed in javascript.
9. Always use builtin functions for read , write, xml and currency.
10.Use script parameters if script is using any URL or value which might need change in future.
   This will update value without changing script..
11. Function names used should be unique, 2 script with same name in account can cause issue.
12. Add comments in your code. This will help in debugging and developments.
    This will also help person who will work on same script in future.
13. Use SDF for managing code and objects.
14. Use context types if needed. Return script if not needed.
15. Do not hard-code company info, instead use Company preference and get value from there.
16.Only develop new functionality if it is not available in Netsuite.


Lets us know if you have any suggestion for best practices.

Thanks
Netsuite Guru



Download Netsuite Guru Android App
Follow Me on Linkedin
Our FB Page

Comments