Aidar Aukenov
04/14/2025, 12:24 PMCeligo AI
04/14/2025, 12:24 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems that it is possible to download a folder from NetSuite using a Restlet. However, the process is not straightforward and requires some additional steps. Firstly, you need to know the ID of the folder you want to download. For example, the
/SuiteScripts/
folder ID is always -15
. Once you have the ID, you can use the following URL to download the folder if you are authenticated: <https://YOURACCTID.app.netsuite.com/core/media/downloadfolder.nl?id=-15>
. Replace YOURACCTID
with your actual account ID.
If you want to send files to a Restlet and create a file in a specific folder in NetSuite, you can Base64-encode the file in a JSON-request to the Restlet. Then, take that content and create the file in the folder of your choice. This method is suitable for binary files. For a CSV file, you can create a JSON object with the file contents as a string for one of the JSON object's keys and post the object to the Restlet. You may also be able to post the CSV string by itself if you set the content type of the post to plaintext.
However, if the size of the folder is large (e.g., above 20.5 GB), you may encounter issues such as timeouts and 502 Bad Gateway errors. In such cases, you might need to consider other methods such as using a map/reduce script or FTP to download the files.
******
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
04/14/2025, 12:24 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.836336732
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.834924638
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833186686
Celigo AI
04/14/2025, 12:24 PM