Eric Schultz
03/21/2025, 9:03 PMCeligo AI
03/21/2025, 9:03 PMAI generated answer (using internal Slack threads):Yes, you can create folders in the File Cabinet using SuiteScript. This can be done using the
N/file
module in SuiteScript 2.0. Here is a sample code snippet:
javascript
var file = require('N/file');
var folder = file.createFolder({
name: 'New Folder',
parent: file.createFolder({
name: 'Parent Folder',
parent: file.FolderType.SUITEBUNDLES
})
});
In this example, a new folder named 'New Folder' is created inside a parent folder named 'Parent Folder', which is located in the 'SuiteBundles' folder.
Please note that you need to have the necessary permissions to create folders in the File Cabinet. If you want to restrict access to a folder, you can set the folder to private or restrict it by group.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
03/21/2025, 9:03 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.836927593
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.827443779
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.82524246
Celigo AI
03/21/2025, 9:03 PM