Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
How read excel file from file cabinet
i can read CSV file properly
but getting different format when trying to read excel file
i have tried following source code
{
//excel file read - showing incorrect format
var fileObj = nlapiLoadFile(4452);
var fileName = fileObj.getName();
var filedValue = fileObj.getValue();
var decodeFile = decode_base64(filedValue);
//CSV file read - showing proper format
var fileObj = nlapiLoadFile(4453);
var fileName = fileObj.getName();
var filedValue = fileObj.getValue();
var decodeFile = decode_base64(filedValue);
}
function decode_base64(s){
var e = {}, i, k, v = [], r = '', w = String.fromCharCode;
var n = [[65, 91], [97, 123], [48, 58], [47, 48], [43, 44]];
for (z in n) {
for (i = n[z][0]; i < n[z][1]; i++) {
v.push(w(i));