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 Customization Guide: Fields, Forms, Workflows & Scripts/How to Create and Use Custom Segments in NetSuite (Step-by-Step Tutorial)

How to Create and Use Custom Segments in NetSuite (Step-by-Step Tutorial)

๐Ÿงฉ How to Create and Use Custom Segments in NetSuite

Introduction

NetSuiteโ€™s Custom Segments feature lets you add new dimensional reporting layers beyond the default classifications like Department, Class, and Location.

With custom segments, finance teams and administrators can track and analyze data by any dimension that fits the business โ€” such as Brand, Region, Project Type, or Channel โ€” directly within transactions and reports.

Custom segments integrate seamlessly into GL postings, saved searches, and SuiteAnalytics, providing a flexible way to slice your financials with precision โ€” without using complex scripts.


๐Ÿ’ก What Are Custom Segments?

Custom Segments are user-defined classification fields that behave like NetSuiteโ€™s native dimensions. They can be added to transactions, entities, items, or custom records, and can even be configured to carry over to GL Impact automatically.

Examples:

Business CaseCustom Segment Example
Multi-brand retailBrand or Product Line
Multi-channel salesSales Channel (Online, Wholesale, Distributor)
Global operationsRegion or Market
Project-based servicesProject Type or Work Category

โš™๏ธ Prerequisites

Before creating a custom segment:

  • You must have Custom Segments enabled under:
    Setup โ†’ Company โ†’ Enable Features โ†’ Accounting โ†’ Custom Segments
  • You need Administrator or Full Access role.
  • Familiarity with SuiteBuilder helps (fields, lists, records).

๐Ÿงฑ Step-by-Step: Creating a Custom Segment in NetSuite

Step 1: Navigate to Custom Segment Setup

Go to:
Customization โ†’ Lists, Records, & Fields โ†’ Segments โ†’ New


Step 2: Define Segment Properties

FieldDescriptionExample
NameLabel for your segmentโ€œBrandโ€
IDInternal ID used by scriptscustsegment_brand
Applies ToSelect applicable recordsTransaction, Item
GL ImpactCheck this if segment should post to GLโœ… Enabled
FilteringOptional filter for valuesActive Brands Only
Parent Segment(Optional) Creates hierarchyNone (for now)

Step 3: Create Segment Values

  1. Go to the Values subtab.
  2. Add each possible option manually (e.g., Brand A, Brand B, Brand C).
  3. You can also import them using CSV.
  4. Save and mark as Active.

Step 4: Deploy Segment to Forms

  1. Go to any Transaction Form (e.g., Sales Order).
  2. Click Customize โ†’ Screen Fields.
  3. Under Classification tab, youโ€™ll now see your segment (e.g., Brand).
  4. Mark it visible and optionally mandatory.
  5. Save the form.

Now, your segment appears on transactions for users to select.


Step 5: Enable GL Impact Tracking

If your custom segment should affect accounting, enable GL Impact when creating it.

When selected on a transaction, the segment will:

  • Flow into GL postings automatically.
  • Appear in financial reports as a separate column.
  • Be available in saved searches and SuiteAnalytics.

โœ… Example:
When you select Brand A on a Sales Order โ†’ the revenue GL line is tagged with Brand A in the general ledger.


๐Ÿงฎ Example Use Case: Brand-Level P&L Reporting

Business Scenario:
Your company sells multiple brands and wants separate income statements per brand.

Solution:

  1. Create a Custom Segment = Brand.
  2. Enable GL Impact.
  3. Add segment to all sales and expense transactions.
  4. Run Financial Report โ†’ Income Statement โ†’ Filter by Brand.

Result:
Now you can see profit & loss per brand โ€” without needing separate subsidiaries or departments.


๐Ÿ”„ Integrating Custom Segments with Other Features

FeatureDescriptionBenefit
Saved SearchesAdd segment as a filter or result columnCreate brand or region-based searches
SuiteAnalytics WorkbookUse as dimensionBuild pivot reports by segment
Custom RecordsAssign segment to custom dataTrack extra-level detail
SuiteScriptAccess via record.getValue('custsegment_...')Automate based on segment
WorkflowsAdd conditions or actionsTrigger logic per segment

๐Ÿงฐ Example SuiteScript Usage

// SuiteScript 2.x example: reading segment value
define(['N/record', 'N/log'], (record, log) => {
    function afterSubmit(ctx) {
        const rec = ctx.newRecord;
        const brandSegment = rec.getValue('custsegment_brand');
        log.debug('Brand Segment Selected:', brandSegment);
    }
    return { afterSubmit };
});

Use case: Automatically adjust pricing or account mapping based on selected segment.


๐Ÿ“Š Reporting with Custom Segments

Custom segments automatically appear in:

  • Financial Reports โ†’ Income Statement / Balance Sheet
  • Saved Searches
  • SuiteAnalytics Workbook datasets

You can filter or group results by your new dimension to produce detailed P&L breakdowns, sales by region, or departmental costs.


๐Ÿง  Best Practices

  • Keep segment values under 1000 records for best performance.
  • Avoid creating too many GL-impact segments (can slow posting).
  • Use hierarchical segments (Parent/Child) for grouping.
  • Lock segment values to prevent accidental edits.
  • Test in Sandbox before deploying in Production.

๐Ÿงฉ Common Issues and Solutions

IssueCauseSolution
Segment not appearing on transactionNot deployed to formCustomize the transaction form
Segment not posting to GLGL Impact not enabledEdit segment โ†’ check GL Impact
Segment missing in reportsPermissions or inactive valuesCheck access roles and values
Not visible to usersForm restriction or hidden tabEnable under form preferences

๐Ÿ“š Related Tutorials

  • ๐Ÿ‘‰ Custom GL Lines Plug-in in NetSuite
  • ๐Ÿ‘‰ Building Workflows with SuiteFlow
  • ๐Ÿ‘‰ SuiteAnalytics Workbook for Custom Reporting

โ“ FAQ

Q1. Are custom segments available in all NetSuite editions?
Yes, but GL Impact segments are available only in OneWorld and Advanced Accounting editions.

Q2. How many custom segments can I create?
Up to 25 segments, but only 3 GL-impact segments are typically recommended for performance.

Q3. Can I rename or delete a custom segment?
You can rename it safely, but deleting it can break historical data references.

Q4. Do custom segments appear in CSV imports?
Yes, if you include the internal ID or name in your CSV template.


๐Ÿงญ Summary

Custom Segments in NetSuite empower finance and operations teams to extend dimensional reporting beyond the defaults.
They help track brands, channels, or markets, bringing clarity and control to your financial analytics โ€” all without scripting or heavy customization.

Share
  • Facebook

Leave a ReplyCancel reply

Sidebar

Ask A Question

Stats

  • Questions 6
  • Answers 6
  • Best Answers 0
  • Users 2
  • 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
admin

admin

  • 5 Questions
  • 2 Points

Trending Tags

clientscript netsuite scripting suitescript

Explore

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

Footer

© 2025 The NetSuite Pro. All Rights Reserved