Aaron McCausland
08/27/2025, 10:28 PMfunction getTransactions(){
try{
const curScript = runtime.getCurrentScript();
const datasetId = curScript.getParameter({name: "custscript_fbsg_distautobill_dataset"});
const myQuery = query.load({id: datasetId});
const condYesterday = myQuery.createCondition({fieldId: "createddate", operator: query.Operator.ON, values: "today"});//TODO: Change to yesterday once done testing.
myQuery.condition = myQuery.and(myQuery.condition, condYesterday);
log.debug("getTransactions condition", myQuery.condition);
return myQuery;
}catch(err){
log.debug("getTransactions error", err);
}
}
What's going on?Dmitry Masanov
08/28/2025, 8:31 AMShawn Talbert
08/28/2025, 4:16 PMsummarize
stage. If you're not doing that then it's possible you're just not seeing the errors that are happening.Aaron McCausland
08/28/2025, 5:22 PMAaron McCausland
08/28/2025, 5:30 PM