Confirmation box in record using client script

In User event: generateIrnButton(recordObj, form) {         let taxLines = recordObj.getLineCount({           sublistId: ‘taxdetails’,         });         taxLines == 0 ? form.addButton({           id: ‘custpage_generate_irn’,           label: ‘Generate IRN’,           functionName: ‘generateIrn’         }) : “”;       }, In Client script: function generateIrn() {       try {         let recId = currentRecord.get().id;         console.log(“rec”, recId);         let suiteletUrl = url.resolveScript({           scriptId: ‘customscript_jj_sl_e_inv_submission_page’,           deploymentId: ‘customdeploy_jj_sl_e_inv_submission_page’,           returnExternalUrl: false,           params: {… Continue reading Confirmation box in record using client script

Adding Inline HTML Field in Suitelet Sublist or Virtual Sublist by User Event

In NetSuite, you might often need to add custom formatting to the values displayed in a sublist. One way to achieve this is by using an INLINEHTML field or directly embedding HTML in a text field to apply styles like color. Below is an approach to add a custom field to a Suitelet sublist or… Continue reading Adding Inline HTML Field in Suitelet Sublist or Virtual Sublist by User Event

Implementing Select All and Unselect All Functionality in Suitelet

In Suitelet scripts, managing sublist items through “Select All” and “Unselect All” buttons can significantly enhance user experience by providing quick options to select or deselect multiple items. Here, we will walk through the process of adding these buttons to a Suitelet sublist and handling their functionality using a client script. Suitelet Script Snippet //… Continue reading Implementing Select All and Unselect All Functionality in Suitelet

The Easiest Way to Deploy Sandbox Script to Production

In previous posts, we showed you how to install the SDF CLI (Command Line Interface) and how to deploy scripts to NetSuite using SDF. But did you know that you can use SDF to pull down your script record object from Sandbox and push it up to Production in just a few easy steps? Follow along as we learn how to use… Continue reading The Easiest Way to Deploy Sandbox Script to Production

How to Use SDF in VS Code

Visual Studio Code is a favorite code editor of many developers (including us!). Understanding how to use SDF (SuiteCloud Developer Framework) in VS Code can significantly improve our effectiveness as SuiteScript developers. In the previous post, we covered how to install the SDF on your computer. Today, let’s cover the basics of how to use the… Continue reading How to Use SDF in VS Code

Delete Multiple NetSuite Records from a List

Occasionally, you may find that you need to delete multiple NetSuite records from a list at the same time. Perhaps you created a set of records just for testing, or perhaps you’ve found an error in the list of records. Whatever your reason for needing to remove these records, the Inline Editor will greatly simplify… Continue reading Delete Multiple NetSuite Records from a List

Extending Saved Search Dates with SQL

Have you ever wondered about extending saved search dates? You’ve seen NetSuite’s built-in date options on searches, where you can select something like “Today,” “End of Next Business Week,” or “Same Day Last Fiscal Year.” If you need some additional flexibility with those date options, try this simple SQL function in the formula box wherever you are in NetSuite: NEXT_DAY({today}+14,’FRIDAY’) That function… Continue reading Extending Saved Search Dates with SQL

Create a Custom Sublist From a Saved Search

Custom Sublists Did you know it is possible in NetSuite to create a custom sublist on a record from a Saved Search? Sublists are useful to find relevant information easily. Instead of navigating to a Saved Search each time you need to find a certain list of important data, what if you could simply scroll… Continue reading Create a Custom Sublist From a Saved Search

E-Invoicing basics:

Invoice Reference Number (IRN): Unique Code: The IRN is a unique 64-character code. Generation: It is generated by the e-invoice system using a hash algorithm. Components: The algorithm uses: Supplier’s GSTIN Year Document type Document number (e.g., invoice number) Purpose: Each IRN is unique for every invoice, credit note, or debit note. Identification: It serves… Continue reading E-Invoicing basics: