Scheduled script execution
Using the scheduled script execution feature, we can execute a server-side code on a recurring schedule. This is useful for many scenarios, such as updating multiple records, purging old records based on criteria, or parsing or validating large datasets.
As a part of our Travel Booking Application, we will create a scheduled script to automatically close booking requests, where the state is pending (-5) and the travel start date is past the current date. In essence, we will mark the state field as Closed Incomplete, which corresponds to the value of 4.
Note
You can view, add, or remove choices for any drop-down field using Dictionary entry, Form Designer, or Update Choice List.
To define a new script that executes on a recurring schedule, use the following steps:
- Open
Studio, selectServer Development|Scheduled Script Executionas shown in the following screenshot, in theCreate Application Filewizard, and click onCreate:

- In the subsequent form that opens up (shown...