keyControl.findKeys(options)
Method Description |
Returns a list of keys that are available to the user. |
Returns |
Metadata about the keys |
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 |
---|---|---|---|---|
|
number |
optional |
The internal ID of an employee selected in the Restrict to Employees field. |
2019.2 |
|
string or object |
optional |
The name of the key. The properties of the object are:
If the object is used, the |
2019.2 |
|
string or object |
optional |
The description of the key. The properties of the object are:
If the object is used, the |
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
...
require(['N/keyControl'],function(keyControl){
var keys = keyControl.findKeys({
name:{value: 'test',
operator: keyControl.Operator.CONTAINS,
ignoreCase:true}
});
...
// Add additional code