Hi all-
Q about scheduling scheduled scripts (SS): I want to run a schedule a SS just before the advanced billing operation that we run daily to bill sales orders (and charge credit cards) according to their billing schedule.
The script deployment schedule only allows script start times to be on whole or half hours, so I'm forced to run my SS half an hour before the billing operation at the earliest. What are my options to get my SS to execute closer to the scheduled time of the billing operation?
watching following 2
n
Nathan L
05/17/2023, 8:57 PM
You could write in to the scheduled script a call to the advanced billing script. so that when the scheduled finishes, it creates a task to call the advanced billing.
Or the reverse of that. Have the start of the advanced billing call the scheduled script
Nathan L
05/17/2023, 8:57 PM
Then you just schedule which ever script is making the call for whatever time you want, and they run one after the other
b
Benjamin Jung
05/17/2023, 10:35 PM
@Nathan L Thanks - a logical thought. The billing operation is a native NS feature though, and I'm not sure that there is an API for it that's open to SuiteScript. I haven't been able to find it in the help so far anyway.