AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Foldersizes font problem encoding2/18/2023 You indicate the file's name, type, contents, description, encoding type, the ID of the folder to store the file in, and whether or not the file should be made accessible externally via a URL ("isOnline"). The "fileCreate" function can be used to upload a file to the File Cabinet and save it in a specified folder. The "main" function hands requests off to a "postProcess" function, which evaluates a "function" parameter that is included in each request, and in turn passes the request to the appropriate sub-function for processing. The RESTlet provides an RPC-style (" remote procedure call") API, where all requests are sent as HTTP POSTs, with JSON-encoded request bodies. Let's review the RESTlet from beginning to end, discuss the functions that it provides, and how to utilize them. Var records = nSuiteQL( request ).asMappedResults() Let's start with the RESTlet, which is included below and available for download here.Ī RESTlet that serves as an RPC-style API to a NetSuite instance's File Cabinet.ĭefine(, main ) įunction main( fileModule, logModule, queryModule, recordModule ) This post does that, and also provides a RESTlet to show how you can use SuiteScript to do other things with the File Cabinet as well, including querying it, creating and deleting folders, uploading files, and more. In the post, I mentioned that I would follow-up and explain how you can use SuiteScript to get to a file's contents. It has been one of the most popular posts that I've written, and I've received a lot of very nice feedback about it. A few weeks ago, I wrote about how you can use SuiteQL to query a NetSuite instance's File Cabinet.
0 Comments
Read More
Leave a Reply. |