Table Management: Server Script
## Overview
By using the "「Server Script」" function, you can achieve conditional branching and complex calculations with simple code that could not be achieved with the conventional "[Script](/en/manual/table-management-script)" function executed on the client side. Also, unlike the "[Script](/en/manual/table-management-script)" function executed on the client side, the "「Server Script」" function is executed at the timing of adding/updating records by importing or operations by API.
## Operation Procedure

With the table open, click "Manage" > "[Table Management](/en/manual/table-management)" from the navigation menu.
*This will not be displayed to users who do not have "Site Administration Permission".

Click the Server Script tab from Table Management to open it.

|Item name|Description|
|:---|:---|
|Title|Arbitrary script title|
|Script|Arbitrary script|
|Timeout|Specify server script timeout in milliseconds(*)|
|Conditions|Select conditions to execute|
*ServerScriptTimeOutChangeable in "[Script.json](/en/manual/script-json)" can be specified by enabling it (true).
## Setting Example
Set a server script to be executed before creating a new record.

・[Execution timing for each object](/manual/server-script-conditions)
## Sample Code
Here, insert a value into each item.
```Javascript
model.ClassA = 'Test';
model.DescriptionA = 'Test';
model.NumA = 123;
model.CheckA = true;
```
## Execution Result
Enter only the title and click the Create Record button.

A script that specifies before creation as the execution condition for the server script is executed, and the specified values are inserted into each item before the record is created.

## Related Information
<div id="ManualList"><ul><li><a href="/en/manual/script-json">Set Parameter: Script.json</a><span>10.02.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/table-management">Manage Table</a><span>10.02.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/table-management-script">Table Management: Script</a><span>08.13.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />