Developer Features: Server Script: saved
## Overview
This is an object that contains information about the "Record" before the update that can be used in the "[Server Script](/en/manual/table-management-server-script)". You can read the value of the "[Column](/en/manual/table-management-column)" using the property.
## Restrictions
1. It has meaning under the condition "Pre-update". Under other conditions, even if it can be referenced, it will be equivalent to model.
1. "「Attachment Column」" and "「Comment Column」" cannot be used.
1. "[Column](/en/manual/table-management-column)" that do not have "Read Permission" in "「Column Access Control」" cannot be obtained.
1. "[Column](/en/manual/table-management-column)" that do not have "Update Permission" in "「Column Access Control」" cannot change the display on the screen even if you assign a value to them.
1. "[Column](/en/manual/table-management-column)" that do not exist on the screen cannot be obtained. To obtain "[Column](/en/manual/table-management-column)" that are not on the screen, use the "AlwaysGetColumns object".
## Properties
|No|Property Name|type|Description|
|:----|:----|:----|:----|
|1|IssueId / ResultId|long|「ID Column」|
|2|SiteId|long|"Site ID Column"|
|3|Creator|int|[Creator Column](/en/manual/table-management-creator)|
|4|CreatedTime|DateTime|「Created Datetime Column」|
|5|Updator|int|[Updater Column](/en/manual/table-management-updator)|
|6|UpdatedTime|DateTime|[Update Datetime Column](/en/manual/table-management-updated-time)|
|7|Ver|int|「Version Column」|
|8|Title|string|「Title Column」|
|9|Body|string|[Body Item](/en/manual/table-management-body)|
|10|StartTime|DateTime|[Start Column](/en/manual/table-management-start-time)|
|11|CompletionTime|DateTime|「Complete Column」|
|12|WorkValue|decimal|「Work Volume Column」|
|13|ProgressRate|decimal|[Progression Rate Column](/en/manual/table-management-progress-rate)|
|14|RemainingWorkValue|decimal|[Remaining Work Volume Column](/en/manual/table-management-remaining-work-value)|
|15|Status|int|[Status Column](/en/manual/table-management-status)|
|16|Manager|int|[Manager Column](/en/manual/table-management-manager)|
|17|Owner|int|[Owner Column](/en/manual/table-management-owner)|
|18|Locked|bool|「Lock Column」|
|19|ClassA~|string|[Class Column](/en/manual/table-management-class)|
|20|NumA~|decimal|[Numeric Item](/en/manual/table-management-num)|
|21|DateA~|DateTime|「Date Column」|
|22|DescriptionA~|string|「Description Column」|
|23|CheckA~|bool|「Check Column」|
## Methods
There are no methods.
## Usage Examples
Even if it is "Pre-update", model retains the values that have been changed by data sent from the screen or CSV (values that will be retained in the database).
Therefore, in a server script that determines what model.Status is, it is difficult to implement a process that you want to perform only when a certain state is changed.
In the example below, saved is used to determine whether the "[Status Column](/en/manual/table-management-status)" has changed.
##### JavaScript(Server Script)
```
const prevStatus = saved.Status;
const currentStatus = model.Status;
if(prevStatus !== currentStatus) {
context.Log(`Status just has been changed.`);
}
```
In the same way, monitoring before and after changes to specific data items can be realized.
Also, if you want to make a similar determination after an update, you may be able to achieve this by storing a shared variable that detects whether there has been a change in "[context.UserData](/ja/manual/server-script-context-user-data)".
For processes that are idempotent with respect to status, there is no need to respond in this way.
## 関連情報
<div id="ManualList"><ul><li><a href="/en/manual/table-management-column">Manage Table: Column</a><span>10.07.2024 up</span></li>
<li><a href="/en/manual/table-management-body">Table Management: Item: Body</a><span>08.13.2024 up</span></li>
<li><a href="/en/manual/table-management-start-time">Manage Table: Column: Start</a><span>10.02.2024 up</span></li>
<li><a href="/en/manual/table-management-progress-rate">Manage Table: Column: Progression Rate</a><span>10.02.2024 up</span></li>
<li><a href="/en/manual/table-management-remaining-work-value">Manage Table: Column: Remaining Work Volume</a><span>10.11.2024 up</span></li>
<li><a href="/en/manual/table-management-status">Manage Table: Column: Status</a><span>10.02.2024 up</span></li>
<li><a href="/en/manual/table-management-manager">Manage Table: Column: Manager</a><span>10.02.2024 up</span></li>
<li><a href="/en/manual/table-management-owner">Manage Table: Column: Owner</a><span>10.11.2024 up</span></li>
<li><a href="/en/manual/table-management-class">Table Management: Item: Classification</a><span>08.13.2024 up</span></li>
<li><a href="/en/manual/table-management-num">Manage Table: Column: Numerical Value</a><span>10.02.2024 up</span></li>
<li><a href="/en/manual/table-management-creator">Manage Table: Column: Creator</a><span>10.11.2024 up</span></li>
<li><a href="/en/manual/table-management-updator">Manage Table: Column: Updater</a><span>10.02.2024 up</span></li>
<li><a href="/en/manual/table-management-updated-time">Manage Table: Column: Update Datetime</a><span>10.11.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/table-management-server-script">Table Management: Server Script</a><span>08.13.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/server-script-context-user-data">Developer Function: Server Script: context.UserData</a><span>08.14.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />