-
Control File permissions
How to associate file permission control with record permissions? It is unreasonable for a user who does not have permission for the record to have permission for the attachment of the record
-
Create a CSV file, save, load and parse the CSV contents using suiteScript
This sample calculates the total for the second column value in a CSV file. Each line in the CSV file has the following format: date,amount Here is the sample data that the script adds to the file: 10/21/14,200.0 10/21/15,210.2 10/21/16,250.3 Code Below: require(['N/file', 'N/error', 'N/log'], function (file, error, log) {…
-
How to control the file upload page
Hi, I have a confusion.about the file upload page,When uploading attachments, each person may choose a different folder Many functional modules require uploading attachments, which leads to messy file management . Is there any other way to control the file upload page besides developing a new page through suitelet script…
-
Send Files from File Cabinet via API
Hi, Guru. Is it possible to send pdf files to file cabinet using API? Thank you so much for your help. Thanks and regards, Herman
-
What is the recommended approach to attach a file to a vendor bill programmatically?
Hi Team, I couldn't find any REST APIs to attach a file to a vendor bill. The SOAP APIs has ways to create a file in file cabinet but struggling to find the way to link the file to a vendor bill record. Any help here would be highly appreciated.
-
What is the Best practice to format the file ?
Hi Team, To send the file through an API call, what is the best practice: to convert/format the file as binary or base64? Also, will NetSuite support sending the file in binary format?
-
How to create a Workflow Action Script to attach a file to a custom record
We have a custom record where we enter all Payroll Tax rates for all US jurisdictions. Each entry also has an official jurisdiction attachment (that is stored in the NetSuite File Cabinet) supporting the current rate. These rates are used by our Development team to update our Payroll Tax engine. Developers use JIRA to…
-
How can I save a file as a MISCBINARY type in a Suitelet?
Just as the title says. Is there a way to save a file via SuiteScript API as a MISCBINARY when an extension is not listed in File.Type enum? Something like: file.create({ name: "fileName.strangeExtension", fileType: File.Type.MISCBINARY // it doesn't work ... }) If not, is there a workaround to solve this problem? I want…
-
Change File Ownership
How to Change the File Ownership? The owner field is not expose in the file record
-
How to attach file to message record?
We need to create message records from the user's local e-mail data and link the record to multiple records in our script. I thought the following code would work. record.attach( record: { type: record.Type.MESSAGE, id: messageId, }, to: { type: "file", id: fileId, }, ) OR record.attach( record: { type: "file", id: fileId,…