Saturday, January 19, 2019

Create a Folder in the File Cabinet using SuiteScript

Below is a sample code on how to dynamically create a folder via SuiteScript:

function suitelet(request, response) {
    var folder = nlapiCreateRecord('folder');
    
folder.setFieldValue(
'name','My Folder');
    var id = nlapiSubmitRecord(folder,true);
}

No comments:

Post a Comment