language area · Records
Operation modifiers
One word changes how an operation behaves: dynamic holds a record in dynamic mode, soft save allows empty mandatory fields, save sourced sources dependent fields, and redirect edit opens a record for editing.
- Implementation
- Implemented in the compiler, not yet published
- Kind
- Mynt language, not a SuiteScript method
A
mynt syntax
Supported · compiles today
1let order = load SalesOrder(456) dynamic2add order.item {3 item = "100"4 quantity = 15}6save order7 8let customer = load Customer(123)9customer.comments = "Reviewed"10soft save customer sourced
1const order = record.load({2 type: record.Type.SALES_ORDER,3 id: 456,4 isDynamic: true5});6order.selectNewLine({7 sublistId: "item"8});9order.setCurrentSublistValue({10 sublistId: "item",11 fieldId: "item",12 value: "100"13});14order.setCurrentSublistValue({15 sublistId: "item",16 fieldId: "quantity",17 value: 118});19order.commitLine({20 sublistId: "item"21});22 23order.save();24 25customer.save({26 ignoreMandatoryFields: true,27 enableSourcing: true28});
The same line code works in both modes: on a dynamic record the compiler writes lines through the current line. Modifiers name a behaviour and never a SuiteScript option, and take no booleans. dynamic applies to load, create, copy and transform of records only.
B
release and compatibility
In the compiler, not yet published: npm 0.1.0 does not have it. Verified with mynt build on 13 Oct 2026.
- Reached the compiler.
- Accepted A modifier is one word for a behaviour, placed where its meaning attaches; it never mirrors a SuiteScript option name or takes a boolean, and defaults have no word (compiler commit 2bed5c9).
- Accepted redirect.toRecord: edit is written before the target, redirect edit customer, because it qualifies where the redirect goes; the earlier redirect customer edit is now a syntax error (compiler commit 2bed5c9).
C
related suitescript apis
SuiteScript methods this feature lowers to or works through. They are counted on their own pages, never through the feature.