certificateControl.findCertificates(options)

Note:

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

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 additional information, see SuiteScript 2.x Script Types.

Governance

10 units

Module

N/certificateControl Module

Since

2019.1

Parameters

Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

Since

options.description

string

optional

The certificate description. You can use this filter with the certificateControl.Operator enum.

2019.2

options.name

string

optional

The certificate name. You can use this filter with the certificateControl.Operator enum.

2019.2

options.notification

number

optional

The internal ID of an employee selected in the Copy Employees field.

2019.2

options.restriction

number

optional

The internal ID of an employee selected in the Restrict to Employees field.

2019.2

options.scriptRestriction

string

optional

Script name to be used for searching for certificates with restrictions to a particular script.

2022.1

options.subsidiary

number

optional

The internal ID of the subsidiary.

2019.1

options.type

string

optional

The certificate file type.

2019.1

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/certificateControl Module Script Samples.

              require(['N/certificateControl'],function(cc){
    var yodlee = cc.findCertificates({
        name: 'Yodlee',
        description: 'Yodlee certificate' 
    });
}) 

            

Related Topics

General Notices