Hi All, Are we able to generate a Predefined NetSuite Report (e.g. Trail Balance) as a CSV via Script and store in the file cabinet? Anyone tried anything like this?
j
jarens
11/15/2018, 12:56 PM
@reza.seedin, you would use a combination of the search and file modules. Load a search and use it to create your csv as a long string in the script. Then you would create the csv with that string and save it to the file cabinet.
jarens
11/15/2018, 12:56 PM
var fileObj = file.create({
name: 'test.csv',
fileType: file.Type.CSV,
contents: 'Hello World\nHello World',
folder: folder id as a number
});
r
reza.seedin
11/15/2018, 10:09 PM
Hi @jarens while if it was a saved search it could be done but I was after standard netsuite reports which can't be recreated via saved search like the trail balance.