Ken
02/17/2024, 12:03 AM/**
*@NApiVersion 2.1
*@NScriptType ScheduledScript
*/
import { EntryPoints } from "N/types";
import log from "N/log";
async function execute(context: EntryPoints.Scheduled.executeContext) {
if (context.type !== context.InvocationType.ON_DEMAND) return;
try {
log.debug("Hello World", "I'm an on demand scheduled script");
} catch (e) {
log.error("Error", e);
}
return "Hello World";
}
export = {
execute,
};
battk
02/17/2024, 12:10 AMKen
02/17/2024, 12:12 AM