Scenario: Files exceeding 10MB are not handled, which could cause failures. If the file size exceeds 10MB throw an error in the response. Steps: In script add a function to check the size of the file. If the size of file is greater than 10 MB, then throw an error in the response.
Tag: file
Determine if a user has changed a file
determine if a user changed a file? The answer is yes. NetSuite has a detective control for this. NetSuite adds a hash on each file in the File Cabinet. A file hash is a unique signature for data that helps to identify it in a verifiable way. A file hash can be used for various… Continue reading Determine if a user has changed a file
Entering a User Note to a Quote can the note carry to a Sales Order?
When you drop a file onto a Quote it shows in communication when the Quote converts to a Sales Order. However, when you enter a user note the note does not carry to the sales order. Is there a way to allow this information to follow the order? Answer: However, it’s currently logged under enhancement… Continue reading Entering a User Note to a Quote can the note carry to a Sales Order?
System Folders in the File Cabinet
To support your activity in the system, NetSuite creates folders in the File Cabinet and automatically adds relevant files to these folders. Some system folders include, but are not limited to: Attachments Sent Attachments Received SuiteBundles SuiteApps User Documents Web Site Hosting Files Note – Only users with the Administrator role can see the User Documents… Continue reading System Folders in the File Cabinet
Hiding Attachment Folders
Users with the Administrator role can set the Hide Attachment Folders preference at Setup > Company > Preferences > General Preferences to prevent access to the following folders: Attachments Received Attachments Sent Mail Merge When this preference is set, employees and partners still have access to files that are attached to customer and other record types even… Continue reading Hiding Attachment Folders
Rename Folder Using SuiteScript 2.0
In case there is a need to rename a folder name on File Cabinet due to changes in the directory where the script generated documents are being saved for example. It is possible to use SuiteScript to change the folder name in the File Cabinet. The following example uses the N/record Module to load the… Continue reading Rename Folder Using SuiteScript 2.0
Populating the files of a folder in file cabinet to select option in Suitelet page
Requirement We need to display the files of any type from a particular folder in file cabinet to the select options in suitelet page. Solution A saved search created to fetch the files from a folder (internal id :1635) in file cabinet. Then this files can be populated in the options of the select field… Continue reading Populating the files of a folder in file cabinet to select option in Suitelet page