Modules

filter

 

Objects/Functions

module (N/certificateControl)

SuiteScript 2.0

certificateControl.createCertificate(options)

{certificateControl}.createCertificate({file: {file*},password: {string},scriptId: {string},description: {string},subsidiaries: {number[] or string[]},restrictions: ${7:number[] or string[]},notifications: ${8:number[] or string[]},name: ${9:string*},weekReminder: {0:boolean true | false},monthReminder: {1:boolean true | false},threeMonthsReminder: {2:boolean true | false}})

N/certificateControl Module
certificateControl.createCertificate()
Method Description: Creates a certificate record on the Certificates page using a file from the File Cabinet. Your role must have Create, Edit, or Full access to the Certificate Access permission to create certificates via SuiteScript.
Returns: certificateControl.Certificate
Supported Script Types: Server scripts For additional information, see SuiteScript 2.0 Script Types.
Governance: 10 units
Module: N/certificateControl Module
Since: 2019.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=certificateControl.createCertificate(options)

Example:

// Code Example 1
//Add additional code
//...
var fileObj = file.load({
id: 'SuiteScripts/dsa.p12'
});
var options = {
file : fileObj,
password : '022b490ad4334c7e86a8304f937ec68f',
name : 'testCert',
description : 'testDescription',
scriptId : '_testid',
subsidiaries : [1,3],
weekReminder : false,
monthReminder : true,
threeMonthsReminder : false
};
var newCertificate = cc.createCertificate(options);
newCertificate.save();
//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_156156407497.html