Find and Use an Existing Certificate Record
The following sample shows how to find an existing certificate record and use it in an operation.
Note:
This sample script uses the require function so that you can copy it into the SuiteScript Debugger and test it. You must use the define function in an entry point script (the script you attach to a script record and deploy). For more information, see SuiteScript 2.x Script Basics and SuiteScript 2.x Script Types.
/**
* @NApiVersion 2.x
*/
require(['N/certificateControl','N/https/clientCertificate'],function(cc, cert){
var yodlee = cc.findCertificates({
name: 'Yodlee',
description: 'Yodlee certificate'
});
cert.post({
certId:yodlee[0].id,
url:'url',
body:'body',
headers:'headers'
});
})
Related Topics
- N/certificateControl Module
- Filter the Digital Certificate List by Subsidiary and File Type
- Find the Audit Trail of POST Operations for a Certificate Record Based on ID
- Create, Modify, and Save Certificate Record Based on a File in the File Cabinet
- Establish an SFTP Connection Using an SSH Key
- SuiteScript 2.x Modules
- SuiteScript 2.x