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