Hi All, Are we able to generate a Predefined NetSu...
# suitescript
r
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
@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.
var fileObj = file.create({ name: 'test.csv', fileType: file.Type.CSV, contents: 'Hello World\nHello World', folder: folder id as a number });
r
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.