Discussions
Join the NetSuite community to innovate, connect, and discover 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. Register now
Why parameters are not passed from a Suitelet to a Scheduled Script using N/task module?
I have a suitelet script with a object parameter = when i load into a scheduled script - i am not getting the object loaded.. in my current iteration I am trying to parse the JSON. But i tried without.. the data is being logged in the suitelet, but not the scheduled script.
Suitelet:
/**
* @NApiVersion 2.x
* @NScriptType Suitelet
* @NModuleScope SameAccount
*/
define(['N/ui/serverWidget', 'N/search', 'N/task', 'N/runtime'],
function(serverWidget, search, task, runtime) {
function getPurchaseOrders() {
var purchaseOrders = search.create({
type: "purchaseorder",
filters:
[
["type","anyof","PurchOrd"],
"AND",
["createdfrom.type","anyof","SalesOrd"],
"AND",
["trandate","within","01/30/2023"],
"AND",
["mainline","is","T"]
],
columns:
[
"trandate",