certificateControl.findUsages(options)

Note:

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

Method Description

Returns an audit trail of how a certificate has been used. Includes operations performed with time stamps.

Returns

An array of operations performed.

Supported Script Types

Server scripts

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

Governance

10 units

Module

N/certificateControl Module

Since

2019.2

Parameters

Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

Since

options.from

date

optional

The start date for your audit trail search.

2019.2

options.to

date

optional

The end date for your audit trail search.

2019.2

options.id

string

optional

The script ID of the certificate record.

2019.2

options.operation

string

optional

The certificateControl.Operation performed with the digital certificate.

2019.2

options.script

number

optional

The script ID of a script record that used a certificate record.

2019.2

options.deploy

number

optional

The script ID of a script deployment that used a certificate record.

2019.2

options.entity

number

optional

The internal ID of the employee who performed the operation.

2019.2

Error

Thrown If

SSS_INVALID_TYPE_ARG

A parameter provided is the wrong type.

TOO_MANY_RESULTS

There are more than 1000 results.

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.

              //Add additional code
...
var usages = cc.findUsages({
        id: 'custcertificate_china',
        operation: cc.Operation.POST
    });
...
//Add additional code 

            

Related Topics

General Notices