Key.file

Note:

The content in this help topic pertains to SuiteScript 2.0 and SuiteScript 2.1.

Property Description

The file object of the key.

Type

file.File

Module

N/keyControl Module

Parent Object

keyControl.Key

Supported Script Types

Server scripts

For additional information, see SuiteScript 2.x Script Types.

Methods and Properties

Key Object Members

Since

2019.2

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/keyControl Module Script Samples.

            // Add additional code
...
var key = keyControl.createKey();
key.file = file.load(422); 
...
// Add additional code 

          

Related Topics

N/keyControl Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices