/** * @NApiVersion 2.x * @NScriptType Suitelet * @NModuleScope Public */ define([ ‘../Library.FHL.2.0.js’ , ‘N/record’ , ‘N/search’ ], function(Library, Record, Search) { /** * Initialise function for suitelet * * @param {Object} context * @return {Any} data */ … Continue reading Create a Library Function
Month: November 2025
Node.js code for making a POST API call to NetSuite using OAuth 1.0.
const axios = require(‘axios’); const CryptoJS = require(‘crypto-js’); const ACCOUNT_ID = ”; const ENDPOINT = “; const AUTH = { consumerKey: ”, consumerSecret: ”, token: ”, tokenSecret: ” }; function generateOAuthHeader(httpMethod, url) { try { const nonce = Math.random().toString(36).substring(2); … Continue reading Node.js code for making a POST API call to NetSuite using OAuth 1.0.
Joining Datasets in NSAW
Joining datasets in NetSuite Analytics Warehouse (NSAW) allows you to combine information from multiple sources into a single dataset for reporting and dashboards. When you add multiple record types, NSAW uses SQL-style joins to determine how the data relates. Inner Join Returns only the records that have matching values in both datasets. Best when you… Continue reading Joining Datasets in NSAW
Setting up Tax Deduction at Source (TDS) in NetSuite
Setting up Tax Deduction at Source (TDS) in NetSuite involves enabling the SuiteTax feature and installing the India Localization bundles to configure specific rules, rates, and vendor information. The process ensures accurate, automated TDS calculations and compliance with Indian tax regulations. Prerequisites Enable SuiteTax: This is the foundational tax engine in NetSuite needed for the… Continue reading Setting up Tax Deduction at Source (TDS) in NetSuite
Upcoming Change to the SuiteAnalytics Connect ODBC Driver [February 16, 2026]
The root certificate for the SuiteAnalytics Connect Service will be rotated on February 16, 2026. After this change, old versions of the Linux ODBC driver for SuiteAnalytics Connect will stop working. If you are using a Linux ODBC driver, upgrade your driver to version 8.10.181 and adjust the Truststore parameter before February 16, 2026. If you… Continue reading Upcoming Change to the SuiteAnalytics Connect ODBC Driver [February 16, 2026]
1.0 to 2.0 script conversion with sample code
This 1.0 code function setCustomerDiscounts(type) { log.debug(‘setCustomerDiscounts’, ‘==START==’); try { if (!isValidForm()) return; var recType = nlapiGetRecordType(); var recId = nlapiGetRecordId(); var lines = getTransactionLines(recId, recType); log.audit(‘Doc No’, ‘Doc No ‘ + nlapiGetFieldValue(‘tranid’)); log.debug(‘lines’, JSON.stringify(lines)); if (ObjectUtils.isEmpty(lines)) return; … Continue reading 1.0 to 2.0 script conversion with sample code
Suitelet Page: Using UI components
Sometimes we need to add some more features to the Netsuite built-in pages, but it has no customizable option. In this case, we usually create the Suitelet page the same as the Netsuite built-in page, but it’s sometimes complicated to make it the same as the origin, or it takes a lot of time or… Continue reading Suitelet Page: Using UI components
SuiteBundler
SuiteBundler is NetSuiteās native tool for packaging customizations, configurations, and scripts into reusable bundles. While developers often focus on SuiteScript or workflows, SuiteBundler quietly enables scalable deployment across accounts. It allows administrators to group saved searches, dashboards, scripts, and workflows into a single package that can be installed in other NetSuite environments. The least explored… Continue reading SuiteBundler
Setting a New Address as Default in Checkout
In the checkout process, when a user adds a new address, the system needs to automatically set that address as the default address (either shipping or billing) based on the context. This ensures that the newly added address is used for further transactions unless the user selects another one. We will extend the existing OrderWizardModuleAddressShipping (or OrderWizardModuleAddress) class to capture… Continue reading Setting a New Address as Default in Checkout
Notify step: Boomi
The Notify step allows you to create custom execution logs and send tailored notification messages to your subscribed email alerts or RSS feed. Notifications can be static or include dynamic content by leveraging input parameters. Email subscriptions are managed per user in the Settings page under the Email Alerts tab. When you add a Notify… Continue reading Notify step: Boomi