Monday, September 24, 2018

Load Contents of Text file into a SuiteScript Array

The method nlobjFile.getValue() returns the contents of the file (base 64 encoded for binary files) thus making this call will allow loading the contents of a text file in an Array.

 

var file = nlapiLoadFile(536); //where 536 is a valid text file Internal ID
var x = file.getValue();

 

No comments:

Post a Comment