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.
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",