Run a server script
Run a one-off server script from Administrator tools to test logic, fix data in bulk or check records, and read its log output.
Run a server script for one-off server logic, such as testing a trigger, fixing records in bulk, checking a set of records or trying an integration call. Administrators and developers use it with the same syntax as triggers and script libraries.
Before you begin
- You need the
administratorrole. - A server script changes live data. Try a bulk change on a test instance first.
- Have the script ready. The objects it can use are in Table and DateTime.
Steps
-
In the Admin Console, select Administration → Administrator tools → Server script.

The Administrator tools menu with Server script. -
Enter the script in the Server script execution box.
-
Right-click in the box and select Execute.

The Execute menu item in the Server script execution box. -
Read the output at the bottom of the box. Anything the script writes with
logappears there.
Log output shown below the script.
Result
The script has run once on the server, and its log output is shown below it. Any records it created, updated or deleted are changed straight away, and their triggers ran unless the script turned them off.
