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