Modules

filter

 

Objects/Functions

module (N/certificateControl)

SuiteScript 2.0

Certificate.file

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Certificate.file for more information.

N/certificateControl Module
Certificate.file
Property Description: The File Object Members object of the certificate uploaded to the certificate record.
Type: File Object Members object
Module: N/certificateControl Module
Parent Object: certificateControl.Certificate
Sibling Object Members: Certificate Object Members
Since: 2019.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Certificate.file

Example:

// Code Example 1
// Add additional code
//...
//load the certificate record object
var loadedCertificate = cc.loadCertificate({
scriptId : 'custcertificate_testid'
});
//load the file from the File Cabinet
fileObj = file.load({
id: 'SuiteScripts/ecdsa.p12'
});
//upload the file to the certificate record
loadedCertificate.file = fileObj;
//save the certificate record
loadedCertificate.save();
//...
// Add additional code

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