How to run schedule script by taking input from UI?

swarnim98531624
Tera Contributor

I have a requirement to run a schedule script by taking input from UI. Currently, I have been able to make it work using Schedule Execution Script but in that schedule job time/cron is defined. I want it to drive the schedule script execution using the user input.

1 REPLY 1

Slava Savitsky
Giga Sage

Scheduled scripts run on a pre-defined schedule. That's why they are called scheduled scripts. If you want some server-side code to run as part of a process that involves user interaction, put it into a script include. Then you would be able to trigger it from a business rule, an event, another script include, etc. And if you want to be able to trigger it from the browser, mark it as client-callable. That would let you use it in a client script, a UI page, etc.