Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The NetSuite Pro

The NetSuite Pro Logo The NetSuite Pro Logo

The NetSuite Pro Navigation

  • Home
  • About Us
  • Tutorials
    • NetSuite Scripting
    • NetSuite Customization
    • NetSuite Integration
    • NetSuite Advanced PDF Templates
    • NetSuite Reporting & Analytics Guide
    • Real-World NetSuite Examples
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Home
  • About Us
  • Tutorials
    • NetSuite Scripting
    • NetSuite Customization
    • NetSuite Integration
    • NetSuite Advanced PDF Templates
    • NetSuite Reporting & Analytics Guide
    • Real-World NetSuite Examples
  • Blog
  • Contact Us
Home/NetSuite SuiteScript Modules: Complete Guide to Every N/ Module

NetSuite SuiteScript Modules: Complete Guide to Every N/ Module

NetSuite SuiteScript 2.x is built around a powerful modular API system. Each module (prefixed with N/) handles a specific area of functionality β€” from working with records and running searches, to sending emails, making HTTP requests, and leveraging generative AI. This hub page is your complete reference for every NetSuite SuiteScript module, with a dedicated guide for each one.

Whether you are a beginner just starting with SuiteScript or an experienced developer looking for a quick reference, use the module index below to jump straight to the guide you need.

How NetSuite Modules Work

In SuiteScript 2.x, all functionality is encapsulated in modules that you load explicitly using AMD-style define() or require(). You only load the modules your script needs, which keeps governance usage low and your code organized. Each module has a unique N/ path (e.g., N/record, N/search, N/email) that you reference in your define array.

/**
 * @NApiVersion 2.1
 * @NScriptType UserEventScript
 */
define(['N/record', 'N/search', 'N/email', 'N/log'], (record, search, email, log) => {
    const afterSubmit = (context) => {
        log.debug({ title: 'Script triggered', details: context.type });
    };
    return { afterSubmit };
});

Complete NetSuite SuiteScript Module Index

Core Record & Data Modules

ModulePurposeGuide
N/recordCreate, load, edit, copy, and delete NetSuite recordsView Guide
N/currentRecordAccess and manipulate the currently active record in client scriptsView Guide
N/searchCreate and run on-demand or saved searchesView Guide
N/queryExecute SuiteQL queries for advanced data retrievalView Guide
N/transactionWork with financial transaction records (void, transform)View Guide

HTTP & Integration Modules

ModulePurposeGuide
N/httpsMake outbound HTTPS/HTTP requests to external APIsView Guide
N/httpMake HTTP requests from client-side scriptsView Guide
N/https/clientCertificateMake certificate-authenticated HTTPS requests (mTLS)View Guide
N/sftpConnect to and transfer files via SFTP serversView Guide

Communication Modules

ModulePurposeGuide
N/emailSend regular, bulk, and campaign emails from scriptsView Guide
N/renderGenerate PDFs, email bodies, and HTML from templatesView Guide

File & Storage Modules

ModulePurposeGuide
N/fileCreate, read, write, and manage files in the File CabinetView Guide
N/cacheStore and retrieve data in the NetSuite cacheView Guide

Security & Cryptography Modules

ModulePurposeGuide
N/cryptoHash, encrypt, decrypt, and sign data in SuiteScriptView Guide
N/encodeEncode and decode data (Base64, UTF-8, hex)View Guide
N/keyControlManage SSH/ECDSA keys for secure SFTP connectionsView Guide
N/authHandle token-based authentication (TBA) in scriptsView Guide

Script Runtime & Utility Modules

ModulePurposeGuide
N/runtimeAccess script context, user info, execution environmentView Guide
N/logWrite debug, audit, error, and emergency log entriesView Guide
N/errorCreate and throw custom SuiteScript errorsView Guide
N/taskCreate and schedule script tasks (Map/Reduce, Scheduled)View Guide
N/workflowTrigger and interact with NetSuite workflows from scriptsView Guide
N/redirectRedirect users to records, searches, or external URLsView Guide

URL & Navigation Modules

ModulePurposeGuide
N/urlGenerate URLs for records, scripts, tasks, and searchesView Guide
N/portletBuild custom dashboard portlets using server-side scriptsView Guide

UI Modules

ModulePurposeGuide
N/ui/serverWidgetBuild server-side forms, sublists, tabs, and field groupsView Guide
N/ui/dialogShow dialog boxes and alerts in client scriptsView Guide
N/ui/messageDisplay inline messages on NetSuite pagesView Guide

Formatting & Data Modules

ModulePurposeGuide
N/formatFormat and parse dates, numbers, and currenciesView Guide
N/format/i18nInternationalize number and date formats by localeView Guide
N/currencyWork with currency exchange rates in scriptsView Guide
N/translationAccess NetSuite string translations for multi-language appsView Guide

XML & Data Parsing Modules

ModulePurposeGuide
N/xmlBuild, parse, and validate XML documents in SuiteScriptView Guide
N/xmlparserParse XML strings and work with DOM elementsView Guide

AI & Machine Learning Modules

ModulePurposeGuide
N/llmCall large language models (LLMs) for generative AI in SuiteScriptView Guide

Choosing the Right Module

Not sure which module to use? Here are the most common tasks: to work with records use N/record, to search for data use N/search or N/query, to send emails use N/email, to call external APIs use N/https, to read or write files use N/file, to generate PDFs use N/render, to get script/user context use N/runtime, and to log messages use N/log.

Share
  • Facebook

Sidebar

Ask A Question

Stats

  • Questions 6
  • Answers 6
  • Best Answers 0
  • Users 5
  • Popular
  • Answers
  • Rocky

    Issue in running a client script in NetSuite SuiteScript 2.0 ...

    • 1 Answer
  • admin

    How can I send an email with an attachment in ...

    • 1 Answer
  • admin

    How do I avoid SSS_USAGE_LIMIT_EXCEEDED in a Map/Reduce script?

    • 1 Answer
  • admin
    admin added an answer The issue is usually caused by following Wrong script file… September 14, 2025 at 10:33 pm
  • admin
    admin added an answer Steps to send an Invoice PDF by email: define(['N/email', 'N/render',… August 28, 2025 at 3:05 am
  • admin
    admin added an answer This error means your script hit NetSuite’s governance usage limit… August 28, 2025 at 3:02 am

Top Members

Rocky

Rocky

  • 1 Question
  • 22 Points
Begginer
Sophie1022

Sophie1022

  • 0 Questions
  • 20 Points
Begginer
jmargoli

jmargoli

  • 0 Questions
  • 20 Points
Begginer

Trending Tags

clientscript netsuite scripting suitescript
  • NetSuite Customization Best Practices: Building Scalable and Maintainable SolutionsMay 26, 2026
  • NetSuite Next: The Future of AI-Enabled ERPMay 25, 2026
  • SuiteScript Code Assist: A Developer’s New Best FriendMay 24, 2026
  • NetSuite Planning Copilot: Scenario Forecasting Made EasyMay 23, 2026
  • AI-Powered Close Management in NetSuite 2026May 22, 2026
  • Advanced PDF Templates in NetSuite: Performance Optimization and Best PracticesMay 22, 2026
  • N/search vs N/query in SuiteScript 2.1 β€” When to Use WhichMay 22, 2026
  • Building NetSuite RESTlets with AI Integrations in 2026May 22, 2026
  • Advanced PDF Templates in NetSuite: Localization and Multi-Language DocumentsMay 20, 2026
  • Advanced PDF Templates in NetSuite: Integrating Saved Searches for Report-Style DocumentsMay 20, 2026

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Footer

Menu

  • Home
  • About Us
  • Tutorials
    • NetSuite Scripting
    • NetSuite Customization
    • NetSuite Integration
    • NetSuite Advanced PDF Templates
    • NetSuite Reporting & Analytics Guide
    • Real-World NetSuite Examples
  • Blog
  • Contact Us

Quick Links

  • NetSuite Scripting
  • NetSuite Customization
  • NetSuite Advanced PDF Template
  • NetSuite Integration
  • NetSuite Reporting & Analytics

Subscribe for NetSuite Insights....

Β© 2026 The NetSuite Pro. All Rights Reserved