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.
Canwe upload files to the file cabinet?
Is it possible to upload files like images to the file cabinet? Ive used this code to try and upload one, the file gets uploaded but the image isnt viewable afterwards.
File uploadFile = new File();
byte[] data = new byte[findImage.Length];
uploadFile.content = data;
uploadFile.name = findImage.Name;
uploadFile.isOnline = true;
uploadFile.isOnlineSpecified = true;
RecordRef folderRef = new RecordRef();
folderRef.internalId = "1";
uploadFile.folder = folderRef;
WriteResponse fileResponse = service.add(uploadFile);