Modules

filter

 

Objects/Functions

module (N/file)

SuiteScript 2.0

File.isInactive

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

N/file Module
File.isInactive
Property Description: The inactive status of a file. If set to true, the file is inactive. The default value is false. When a file is inactive, it does not display in the UI unless you select Show Inactives on the File Cabinet page.
Type: boolean
Supported Script Types: Server-side scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/file Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=File.isInactive

Example:

// Code Example 1
//Add additional code
//...
var fileObj = file.load({
id: 'Images/myImageFile.jpg'
});
fileObj.name = 'myOldImageFile.jpg';
fileObj.isInactive = true;
var fileId = fileObj.save();
//...
//Add additional code

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