Sunday, March 17, 2019

Identify If the Tax Period period is closed using a search in SuiteScript


NetSuite users can create a search and use 'allclosed' field which returns True or False.

Below is the sample:

var searchresults = nlapiSearchRecord('taxperiod');
var filters = new Array();
filters.push(new nlobjSearchFilter('internalid', null, 'is', '3'));

var columns = new Array();
columns.push(new nlobjSearchColumn('internalid'));
columns.push(new nlobjSearchColumn('periodname'));
columns.push(new nlobjSearchColumn('allclosed'));

var results =nlapiSearchRecord('taxperiod', null, filters, columns);

No comments:

Post a Comment