Hi, I want to read data from a BAI file stored at the file cabinet. I am using suite script 1.0 to read the file. data in bai file is in below format..
02,rubrikin,121000358,1,200228,2359,,2/
03,1416213218,USD/
88,010,0,,Z/
I am using below code of line to read the file.
var f = nlapiLoadFile('tanuja/Prior month AR Account 3218 (2).bai');
//nlapiLogExecution('DEBUG', 'Content', f.getValue());
nlapiLogExecution('DEBUG', 'Event', 'Type: ' + type + ' File: ' + f.getId());
var csvLines = f.getValue().split('/\n|\n\r/');
log.debug('CSV Length : ', csvLines);
The data i m a getting using suitescript is coming as MDEsQkFOS09GQU1FUklDQSxydWJyaWtpbiwyMDAzMzAsMTMzOS.......
Can anybody plz help on this to read the file lines.