How to run schedule script by taking input from UI?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2024 10:46 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2024 12:56 PM
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.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/