Developer Function: Server Script: apiModel.Create
## Overview
Create a record in the server script with the contents of the apiModel object.
## Limitations
1. The ID of a created record cannot be retrieved from the return value of apiModel.Create. If you write a script as shown in the "Usage Example" below, you can retrieve the ID of the created record.
## Syntax
```
apiModel.Create(siteId)
```
## Parameter
|Parameter|Type|Required|Description|
|:----------|:----------|:---:|:---------------------------|
|siteId|object|Yes|Specify the site ID of the target table|
## Return Value
If the record is created, true is returned; if not, false is returned.
The contents of the created record, including the record ID, are reflected in the apiModel.
## Usage Example
The following example creates a record in a time-limited table for site ID 123 with a title of "About Pleasanter Upgrade Procedure" and outputs the record ID that was created.
##### JavaScript
```
// Script for time-limited table
let sampleApiModel = items.NewIssue();
sampleApiModel.Title = 'About Pleasanter Upgrade Procedure';
sampleApiModel.Create(123);
context.Log(sampleApiModel.IssueId); // Output ID of the record created to the browser console
```
To create a record in the recorded table, write the following script. The contents written in the first and fifth lines are different from those for the time limited table.
##### JavaScript
```
// Recorded table script
let sampleApiModel = items.NewResult();
sampleApiModel.Title = 'About Pleasanter Upgrade Procedure'';
sampleApiModel.Create(123);
context.Log(sampleApiModel.ResultId); // Output ID of the record created to the browser console
```