function getInputData()
{
var rows = [];
var f = file.load({
id: 'SuiteScripts/CSV/serial_expiries.csv'
});
var contents = f.getContents(); // Important: This method is only supported on files up to 10MB in size.
var lines = contents.split('\n');
// start at row 1 to ignore headers
for (i=1; i<lines.length; i++) {
var line = lines[i].replace('\r', '');
var values = line.split(',');
// TODO: check correct number of columns in row
// Expects CSV format to be internal_id, itl_lot_id, dbs_expiry, sck_expiry
// Do these need to be key value pairs or just an array?
rows.push({internalId: values[0],
itlLotId: values[1],
dbsExpiry: values[2],
sckExpiry: values[3]});
}
return rows;
}