Certificate.file
Property Description |
The File Object Members object of the certificate uploaded to the certificate record. |
Type |
File Object Members object |
Module |
|
Parent Object |
|
Sibling Object Members |
|
Since |
2019.2 |
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
...
//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