Modules

filter

 

Objects/Functions

module (N/file)

SuiteScript 2.0

File.name

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

N/file Module
File.name
Property Description: The name of a file.
Type: string
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.name

Example:

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

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