keyControl.loadKey(options)
Method Description |
Loads a key. |
Returns |
Object |
Supported Script Types |
Server scripts For additional information, see SuiteScript 2.x Script Types. |
Governance |
10 units |
Module |
|
Since |
2019.2 |
Parameters
The options
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
|
string |
required |
The script ID of the key to be loaded. Using Key.save() and keyControl.findKeys(options) returns the script ID. |
2019.2 |
Syntax
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.loadKey({
scriptId: '_testKey'
});
...
// Add additional code