Extracting Numbers for NetSuite CSV Import with Excel

This article explains a concise Excel formula to extract numeric values from text for NetSuite CSV imports, ensuring compatibility with numeric fields. Formula: =VALUE(MID(A3,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A3&”0123456789″)),FIND(” “,A3&” “,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A3&”0123456789″))+1)-MIN(FIND({0,1,2,3,4,5,6,7,8,9},A3&”0123456789″)))) How It Works FIND({0,1,2,3,4,5,6,7,8,9}, A3&”0123456789″): Locates positions of digits in cell A3, with appended digits to avoid errors. MIN(…): Identifies the first digit’s position. FIND(” “, A3&” “, …):… Continue reading Extracting Numbers for NetSuite CSV Import with Excel

Await, Without the Wait

await lets you pause inside an async function until a Promise settles, so async code reads like clear, top-to-bottom logic. It doesn’t block the thread; it yields to the event loop and resumes with the result (or throws on rejection). Advantages Clear, readable control flow (less callback/promise chaining) Centralized error handling with try/catch/finally Easier testing… Continue reading Await, Without the Wait

Updating Custom Fields with record.submitFields in NetSuite when the field id is stored to a variable.

NetSuite’s record.submitFields method efficiently updates specific fields on a record without loading it. To update the custom field custbody_jj_custfield on a sales order: const BODY_CUSTFIELD = ‘custbody_jj_custfield’; record.submitFields({ type: record.Type.SALES_ORDER, id: soId, values: { [BODY_CUST_FIELD]: true }, options: { enableSourcing: false, ignoreMandatoryFields: true } }); Why []? Use square brackets [BODY_CUST_FIELD] to dynamically reference the… Continue reading Updating Custom Fields with record.submitFields in NetSuite when the field id is stored to a variable.

Reasons Why Some Items Cannot Be Added in Creating a Transaction in NetSuite

Permissions and Roles: If a user does not have the necessary permissions to add certain items, they will be restricted from doing so. Ensuring that the user has the correct role and permissions can resolve this issue. Item Configuration: Inactive Items: Items that are marked as inactive in the system cannot be added to transactions.… Continue reading Reasons Why Some Items Cannot Be Added in Creating a Transaction in NetSuite

Updating PDF Templates with New NetSuite URLs

If you have been using URLs with domains like shop.netsuite.com or secure.netsuite.com in your PDF templates and they have stopped working, it’s likely due to NetSuite’s transition to account-specific domains. This guide will help you update your PDF templates to use the new app.netsuite.com domain format. Step 1: Identify the Image Files Navigate to Documents… Continue reading Updating PDF Templates with New NetSuite URLs

Understanding Bearer Tokens

Bearer tokens are a widely used method for securing API access, particularly in modern web applications and services. They offer a simple yet effective way to authenticate and authorize users. Here’s an in-depth look at what bearer tokens are, how they work, and why they are essential for secure API communication. A bearer token is… Continue reading Understanding Bearer Tokens

The Advantages of Using Global Variables Over Static Values in SUIEScript

In the realm of scripting and programming, the choice between using global variables and static values can significantly impact the flexibility, maintainability, and scalability of your code. This is particularly true in SUIEScript, a scripting language designed for specific applications. Here are some compelling reasons to prefer global variables over static values: 1. Flexibility and… Continue reading The Advantages of Using Global Variables Over Static Values in SUIEScript

Exploring search.lookupFields in SuiteScript: What You Can and Cannot Fetch

In SuiteScript, the search.lookupFields method is a powerful tool for retrieving specific field values from a record without performing a full search. This method is particularly useful for quickly accessing data with minimal overhead. However, it’s important to understand its capabilities and limitations. This article explores what data you can fetch using search.lookupFields and what you cannot. search.lookupFields is a… Continue reading Exploring search.lookupFields in SuiteScript: What You Can and Cannot Fetch