Discussions
Don't miss out on the opportunity to boost sales and customer satisfaction. Elevate your business with NetSuite's Intelligent Recommendations.
Please be advised that our authorized Account Integration Service Provider for the NetSuite Bank Feeds SuiteApp will undergo approximately two hours planned outage. Standard maintenance will take place to perform a database upgrade.
The schedule of the planned outage is on Sunday, 3 November 2024, from 10:30 p.m. Pacific Time to 12:30 a.m. Pacific Time, Monday, 4 November 2024.
During the maintenance window, all connections and import requests to your financial institutions in the United States and Canada through the Bank Feeds SuiteApp will be unavailable. If you try to connect a new U.S. or Canada financial institution to NetSuite or manually initiate an import request, you will receive an error message.
To view the most recent bank feeds maintenance schedule, see Bank Feeds SuiteApp Maintenance Schedule, SuiteAnswers ID 94347.
Item Fulfilment Serial Numbers
I'm trying to list all the serial numbers that have been allocated on an item fulfilment. I'm trying to do this on an aftersubmit event as below.
define(['N/record','N/search'],
function(record,search){
function afterSubmit(context) {
if(context.type == 'create' || context.type == 'edit'){
var rec = context.newRecord;
//Load saved search for serial numbers
var serailnumbersearch = search.load({id: 'customsearch_wrsinventorynumbersforso'})
serailnumbersearch.filters.push(['transaction.internalid','anyof', rec.id])
var serailnumbersearch = serailnumbersearch.run()
var serailnumbersearch = serailnumbersearch.getRange({start: 0, end: 50});
//Loop through saved search
for (var i = 0; i < serailnumbersearch.length; i++){
log.debug('Serial Number',serailnumbersearch[i].getValue('inventorynumber'));
}
}
}
return {afterSubmit: afterSubmit}