certificateControl.findCertificates(options)
Method Description |
Returns an array of certificates available. You can use the parameters as filters for this search. If you do not use any parameters, all certificate records are returned. |
Returns |
Metadata about the certificate(s) |
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
10 units |
Module |
|
Since |
2019.1 |
Parameters
The options
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
|
string |
optional |
The certificate description. You can use the certificateControl.Operator enum with this parameter. |
2019.2 |
|
string |
optional |
The certificate name. You can use the certificateControl.Operator enum with this parameter. |
2019.2 |
|
number |
optional |
The internal ID of an employee selected in the Copy Employees field. |
2019.2 |
|
number |
optional |
The internal ID of an employee selected in the Restrict to Employees field. |
2019.2 |
|
string |
optional |
Script name to be used for searching for certificates with restrictions to a particular script. |
2022.1 |
|
number |
optional |
The internal ID of the subsidiary. |
2019.1 |
|
string |
optional |
The certificate file type. |
2019.1 |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/certificateControl Module Script Samples.
require(['N/certificateControl'],function(cc){
var yodlee = cc.findCertificates({
name: 'Yodlee',
description: 'Yodlee certificate'
});
})