module function · N/record

create()

record.create(options)

Creates a new record.

Implementation
Implemented published in npm 0.0.1
Design
Accepted create T
Proposals
A
Signature
record.create(options)
Module
N/record
Returns
record.Record
Governance
Transaction records: 10 units Custom records: 2 units All other records: 5 units
Script types
Client and server scripts
Version
SuiteScript 2.x, documented for 2.1; since NetSuite 2015.2
call shapefrom Oracle's parameter table
1record.create({2    type:      /* string, required */,3    isDynamic: /* boolean, optional */4});
Oracle reference for this method
ParameterTypeRequiredDescription
options.typestringrequiredThe record type. This value determines the Record.type property of the record that is created. This property is read-only on an existing record. Use the following guidelines: When creating an instance of a standard NetSuite record type, set this value by using the record.Type enum. When creating an instance of a custom record type, set this value by using the custom record type's string ID. For help finding this ID, see Custom Record .
options.isDynamicbooleanoptionalDetermines whether the new record is created in dynamic mode. If set to true , the new record is created in dynamic mode. If set to false , the new record is created in standard mode. By default, this value is false . Note: For additional information about standard and dynamic mode, see record.Record and SuiteScript 2.x Standard and Dynamic Modes .
B

Supported syntax · compiles today

myntcreate T
let customer = create Customer
suitescriptoutput, trimmed
1const customer = record.create({2    type: record.Type.CUSTOMER3});

The record exists in NetSuite only after save; a new record that some path never saves is a warning (MYNT2001). dynamic after it holds the record in dynamic mode, isDynamic: true (in the compiler, not yet published). Published on npm since 0.0.1. Verified with mynt build on 13 Oct 2026.

C

Competing syntax for create, from GitHub Discussions. Select two or more to compare them side by side, with the syntax Mynt supports today as a baseline.

All discussions
Mynt todaylet customer = create Customer

Loading proposals from GitHub…

D

Write the Mynt you wish you could write.

A good proposal shows the syntax, the SuiteScript it should become, and argues for it: why it is clearer, how it fits the rest of the language, what it makes harder.

  • Clarity. Does it say what happens, without ceremony?
  • Consistency. Does it read like load, save and Ref[field]?
  • Expressiveness. Does it cover the cases people actually write?
  • Honesty. Does it hide a NetSuite cost, such as governance, that a reader should see?

N/record · record.create(options)

Suggest syntax for create