Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
SuiteWorld | October 25–28, 2026 | Las Vegas Where our community gets ready for what’s next!
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
Uploading File in Assistant
I'm trying to upload a file with the Assistant but I can't seem to figure it out. I followed the Uploading Files to the File Cabinet Using SuiteScript but I can't seem to get access to the nlobjFile in the POST.
I've tried persisting the file using the context object and submitting the file from the post after getting the param.
GET:
if(step.getName() == "upload"){ var fldFile = assistant.addField('custpage_file', 'file', 'Select File'); }POST:
if (assistant.getLastStep().getName() == "upload" && (assistant.getLastAction() == "next" || assistant.getLastAction() == "jump" )) { var file = request.getParameter('custpage_file'); // Persist with session nlapiGetContext().setSessionObject('file',file); // OR submit file file.setFolder(10); var id = nlapiSubmitFile(file); }
Tagged:
0