Netsuite SuiteScript 2.0 Modules
Hi All,
In Netsuite scripting , scripting is based on modules,
So we have to first define module and then use that module.
If we use any module without defining then script will throw error.
Module List is as Below :
1. N/auth Module -
Load the auth module when you want to change your NetSuite login credentials.
2. N/cache Module -
Load the cache module to enable the caching of needed data and improve performance.
3. N/config Module -
Load the config module when you want to access NetSuite configuration settings.
4. N/crypto Module -
Load the crypto module to work with hashing, hash-based message authentication (hmac), and symmetrical encryption. You can access a set of wrappers for OpenSSL's hash, hmac, cipher, and decipher methods.
5. N/currency Module -
Load the currency module to work with exchange rates within your NetSuite account. You can use the currency module to find the exchange rate between two currencies based on a certain date.
15. N/plugin Module -
Load the plugin module to load custom plug-in implementations.
16. N/portlet Module -
Load the portlet module when you want to resize or refresh a form portlet.
17. N/record Module -
Load the record module to work with NetSuite records.
18. N/redirect Module -
Load the redirect module when you want to redirect users to one of the following:
20. N/runtime Module -
21. N/search Module -
Load the search module to create and run ad-hoc or saved searches and analyze and iterate through the search results. You can search for a single record by keywords, create saved searches, search for duplicate records, or return a set of records that match filters you define.
22. N/sftp Module -
Load the sftp module to connect to a remote FTP server via SFTP and transfer files.
23. N/sso Module -
Load the sso module when you want to generate outbound single sign-on (SuiteSignOn) tokens.
24. N/task Module -
Load the task module to create tasks and place them in the internal NetSuite scheduling or task queue. Use the task module to schedule scripts, run Map/Reduce scripts, import CSV files, merge duplicate records, and execute asynchronous workflows.
25. N/transaction Module -
Load the transaction module to void transactions.
26. N/ui/dialog Module -
Load the dialog module to create a modal dialog that persists until a button on the dialog is pressed.
27. N/ui/message module -
Load the message module to display a message at the top of the screen under the menu bar.
28. N/ui/serverWidget Module -
Load the serverWidget module when you want to work with the user interface within NetSuite.
29. N/url Module -
Load the url module when you want to determine URL navigation paths within NetSuite or format URL strings.
30. N/util Module -
Load the util module when you want to manually access util methods. Module members are also supported by the global util Object.
31. N/workflow Module -
Load the workflow module to initiate new workflow instances or trigger existing workflow instances.
32. N/xml Module -
Load the xml module to validate, parse, read, and modify XML documents.
In Coming blogs I will explain each module separately ,
if you have any comment or question please let me know.
Thanks
Netsuite Guru
In Netsuite scripting , scripting is based on modules,
So we have to first define module and then use that module.
If we use any module without defining then script will throw error.
Module List is as Below :
1. N/auth Module -
Load the auth module when you want to change your NetSuite login credentials.
2. N/cache Module -
Load the cache module to enable the caching of needed data and improve performance.
3. N/config Module -
Load the config module when you want to access NetSuite configuration settings.
4. N/crypto Module -
Load the crypto module to work with hashing, hash-based message authentication (hmac), and symmetrical encryption. You can access a set of wrappers for OpenSSL's hash, hmac, cipher, and decipher methods.
5. N/currency Module -
Load the currency module to work with exchange rates within your NetSuite account. You can use the currency module to find the exchange rate between two currencies based on a certain date.
6. N/currentRecord Module - Load the currentRecord module to access the record instance that you are currently working on. You can then use the record instance in a client-side context. 7. N/email Module - Load the email module when you want to send email messages from within NetSuite. You can use the email module to send regular, bulk, and campaign email. 8. N/encode Module - Load the encode module when you want to convert a string to another type of encoding. 9. N/error Module - Load the error module when you want to create your own custom SuiteScript errors. Use these custom errors in try-catch statements to abort script execution. 10. N/file Module - Load the file module to work with files in NetSuite. 11. N/format Module - Load the format module to convert strings into a specified format and to parse formatted data into strings. 12. N/http Module - Load the http module to make http calls. All HTTP content types are supported. 13. N/https Module - Load the https module to make https calls. You can also use this module to encode binary content or securely access a handle to the value in a NetSuite credential field. 14. N/log Module - Load the log module when you want to access methods for logging script execution details. Module members are also supported by the global log Object. |
15. N/plugin Module -
Load the plugin module to load custom plug-in implementations.
16. N/portlet Module -
Load the portlet module when you want to resize or refresh a form portlet.
17. N/record Module -
Load the record module to work with NetSuite records.
18. N/redirect Module -
Load the redirect module when you want to redirect users to one of the following:
- URL
- Suitelet
- Record
- Task link
- Saved search
- Unsaved search
19. N/render Module - Load the render module to create forms or email from templates and to print to PDF or HTML |
Load the runtime module when you want to access the runtime settings for company, script, session, system, user, or version. |
21. N/search Module -
Load the search module to create and run ad-hoc or saved searches and analyze and iterate through the search results. You can search for a single record by keywords, create saved searches, search for duplicate records, or return a set of records that match filters you define.
22. N/sftp Module -
Load the sftp module to connect to a remote FTP server via SFTP and transfer files.
23. N/sso Module -
Load the sso module when you want to generate outbound single sign-on (SuiteSignOn) tokens.
24. N/task Module -
Load the task module to create tasks and place them in the internal NetSuite scheduling or task queue. Use the task module to schedule scripts, run Map/Reduce scripts, import CSV files, merge duplicate records, and execute asynchronous workflows.
25. N/transaction Module -
Load the transaction module to void transactions.
26. N/ui/dialog Module -
Load the dialog module to create a modal dialog that persists until a button on the dialog is pressed.
27. N/ui/message module -
Load the message module to display a message at the top of the screen under the menu bar.
28. N/ui/serverWidget Module -
Load the serverWidget module when you want to work with the user interface within NetSuite.
29. N/url Module -
Load the url module when you want to determine URL navigation paths within NetSuite or format URL strings.
30. N/util Module -
Load the util module when you want to manually access util methods. Module members are also supported by the global util Object.
31. N/workflow Module -
Load the workflow module to initiate new workflow instances or trigger existing workflow instances.
32. N/xml Module -
Load the xml module to validate, parse, read, and modify XML documents.
In Coming blogs I will explain each module separately ,
if you have any comment or question please let me know.
Thanks
Netsuite Guru
Comments
Post a Comment
Thanks for you message, please join us on Facebook and Linkedin