Key.save()

Note:

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

Method Description

Saves the key.

Returns

Object

Supported Script Types

Server scripts

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

Governance

10 units

Module

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); 
//id of file containing private key
key.name = 'SFTP key';
key.save();
...
// Add addtional code 

          

Related Topics

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

General Notices