Modules

filter

 

Objects/Functions

module (N/query)

SuiteScript 2.0

Period.code

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Period.code for more information.

N/query Module
Period.code
Property Description: The code of the period. This property uses values from the query.PeriodCode enum.
Type: string (read-only)
Module: N/query Module
Parent Object: query.Period
Sibling Object Members: Period Object Members
Since: 2020.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Period.code

Example:

// Code Example 1
// Add additional code
//...
var myPeriod = query.createPeriod({
code: query.PeriodCode.LAST_PERIOD,
adjustment: query.PeriodAdjustment.ALL,
type: query.PeriodType.END
});

var theCode = myPeriod.code;
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_158289612641.html