Supported SuiteScript File Types
Published on
October 31, 2023 at 1:37:29 AM PDT October 31, 2023 at 1:37:29 AM PDTst, October 31, 2023 at 1:37:29 AM PDT
SuiteScript has two types of file objects: previously existing files in the NetSuite File Cabinet, and on demand files created using SuiteScript API calls such asfile.create(options)orConnection.download(options).
File Cabinet and on demand files are supported byConnection.upload(options).
Note thatConnection.download(options)returns an on demand file object. For an on demand file to be saved into the File Cabinet, it must receive a folder ID and be explicitly saved.
Its possible that a file you are downloading may be encrypted, or your SFTP provider may expect an uploaded file in a encrypted format in accordance with that provider's security practices. Make sure that you understand your provider's expectations and the cryptographic capabilities in SuiteScript (seeN/crypto Module).
You can also create and remove directories. For more information, seeN/sftp Module Members.