SuiteScript のレコードとフィールドのリファレンス(参照資料)です。 NetSuite の 272 種類のレコードタイプすべてについて、フィールドID、データ型、必須項目の指定、検索機能などを調べることができます。 SuiteScript を開発する際に、フィールドの使用方法が正しいことを確認するために使用します。
SuiteScript records and fields reference. Look up field IDs, types, required status, and search capabilities for all 272 NetSuite record types. Use this when building SuiteScript to ensure correct field usage.
NetSuite SuiteScript のレコードタイプとそのフィールドに関する信頼性の高いリファレンスです。 次のような場合に使用:
nlapiSubmitField をサポートするかどうかを確認するN/record 操作(create、load、setValue、getValue)の構築時N/search のフィルターおよびカラムの作成時references/records.jsonrecords.json からレコードの内部ID(例: "salesorder"、"customer")を検索する各レコードには以下のプロパティが含まれます:
| プロパティ | 説明 |
|---|---|
recordCategory |
レコードタイプ: List、Transaction、Entity、Activity、Subrecord、Script、Custom など |
scriptingLevel |
APIアクセスレベル: Full、Read and Search Only、Search Only、Copy Not Supported など |
clientScriptable |
クライアント SuiteScript でスクリプトを記述できるか(true/false) |
serverScriptable |
サーバー SuiteScript でスクリプトを記述できるか(true/false) |
scriptingNotes |
特記事項(例: "Server scripts must access through the parent record") |
supportsCustomFields |
カスタムフィールドをサポートするか |
各フィールドには以下のプロパティが含まれます:
| プロパティ | 説明 |
|---|---|
internalId |
スクリプト内で使用するフィールドID(例: "entity"、"trandate") |
type |
フィールドタイプ: text、select、currency、date、checkbox など |
label |
人が読みやすいフィールド名 |
required |
"true" または "false" |
nlapiSubmitField |
submitFields() でフィールドを更新できるか |
help |
ツールチップ/説明テキスト |
レコードが create / update をサポートするか確認する:
"scriptingLevel": "Full" → すべての CRUD 操作をサポート
"Read and Search Only" → スクリプトからの作成・更新は不可
"Search Only" → N/search のみ使用可能、N/record アクセス不可
クライアント・サーバーのスクリプト対応を確認する:
"clientScriptable": true → Client Script をアタッチして currentRecord を使用可能
"serverScriptable": true → User Event、Scheduled、Map/Reduce などで使用可能
レコードの全フィールドを取得する:
records.json で "internalId": "salesorder" を検索する
必須フィールドを調べる:
"required": "true" のフィールドを探す
フィールドが submitFields に対応するか確認する:
"nlapiSubmitField": "true" を確認する
| レベル | N/record.create | N/record.load | N/record.copy | N/record.delete | N/search |
|---|---|---|---|---|---|
| Full | ○ | ○ | ○ | ○ | ○ |
| Copy Not Supported | ○ | ○ | ✕ | ○ | ○ |
| Create, Read, Update, and Delete | ○ | ○ | ✕ | ○ | ○ |
| Read, Create, Update, Copy, Delete, and Search | ○ | ○ | ○ | ○ | ○ |
| Read and Search Only | ✕ | ○ | ✕ | ✕ | ○ |
| Search Only | ✕ | ✕ | ✕ | ✕ | ○ |
以下の表は代表的なカテゴリを示しています。ソースデータにはこれ以外のカテゴリが含まれる場合があります。
| カテゴリ | 説明 |
|---|---|
| List | 設定・セットアップ用レコード(勘定科目、品目、拠点など) |
| Transaction | 財務ドキュメント(受注、請求書、支払いなど) |
| Entity | 人物・企業(顧客、仕入先、従業員など) |
| Activity | カレンダー・タスク用レコード(イベント、タスク、電話連絡など) |
| Subrecord | 親レコードに組み込まれるレコード(住所、在庫詳細など) |
| Script | スクリプト定義レコード。SDF 経由で管理し、直接 CRUD は行わない |
| Custom | ユーザー定義のカスタムレコードおよびカスタムトランザクションタイプ |
| タイプ | 説明 | フィールド例 |
|---|---|---|
text |
1行テキスト | memo、externalid |
textarea |
複数行テキスト | message |
select |
ドロップダウン選択 | entity、location |
multiselect |
複数選択 | |
checkbox |
真偽値(true/false) | ismultishipto |
currency |
通貨金額 | total、subtotal |
date |
日付値 | trandate、duedate |
datetime |
日付と時刻 | |
integer |
整数 | quantity |
float |
小数 | rate |
email |
メールアドレス | |
phone |
電話番号 | phone |
url |
Web URL | url |
以下のスクリプトタイプは SDF 経由で管理されるため、records.json の検索可能なレコードタイプとしては表示されません:
| スクリプトタイプ | 非掲載の理由 | 参照先 |
|---|---|---|
SDFInstallationScript |
UIのレコードシステムではなく SDF の deploy.xml で管理される |
netsuite-sdf-leading-practices の SKILL.md(スキルが利用可能な場合): テンプレート、コンテキストオブジェクト、deploy.xml サンプル |
272件すべてのレコードのアルファベット順一覧は references/record-index.md を参照してください。
Authoritative reference for NetSuite SuiteScript record types and their fields. Use this skill to:
nlapiSubmitField.N/record operations (create, load, setValue, getValue)N/search filters and columnsreferences/records.jsonrecords.json for the record internal ID (for example, "salesorder", "customer").Each record includes:
| Property | Description |
|---|---|
recordCategory |
Record type: List, Transaction, Entity, Activity, Subrecord, Script, Custom, etc. |
scriptingLevel |
API access level: Full, Read and Search Only, Search Only, Copy Not Supported, etc. |
clientScriptable |
Whether the record can be scripted in client SuiteScript (true/false) |
serverScriptable |
Whether the record can be scripted in server SuiteScript (true/false) |
scriptingNotes |
Special notes (for example, "Server scripts must access through the parent record") |
supportsCustomFields |
Whether the record supports custom fields |
Each field includes:
| Property | Description |
|---|---|
internalId |
Field ID to use in scripts (for example, "entity", "trandate") |
type |
Field type: text, select, currency, date, checkbox, etc. |
label |
Human-readable field name |
required |
"true" or "false" |
nlapiSubmitField |
Whether the field can be updated through submitFields() |
help |
Tooltip/description text |
Check if a record supports create/update:
Look for "scriptingLevel": "Full" — supports all CRUD operations.
"Read and Search Only" — cannot create or update via script.
"Search Only" — can only be used in N/search, no N/record access.
Check client vs. server scriptability:
"clientScriptable": true — can attach a Client Script and use currentRecord.
"serverScriptable": true — can be used in User Event, Scheduled, Map/Reduce, etc.
Get all fields for a record:
Search records.json for: "internalId": "salesorder".
Find required fields:
Look for fields where "required": "true".
Check if field is submittable:
Look for "nlapiSubmitField": "true".
| Level | N/record.create | N/record.load | N/record.copy | N/record.delete | N/search |
|---|---|---|---|---|---|
| Full | Yes | Yes | Yes | Yes | Yes |
| Copy Not Supported | Yes | Yes | No | Yes | Yes |
| Create, Read, Update, and Delete | Yes | Yes | No | Yes | Yes |
| Read, Create, Update, Copy, Delete, and Search | Yes | Yes | Yes | Yes | Yes |
| Read and Search Only | No | Yes | No | No | Yes |
| Search Only | No | No | No | No | Yes |
This table lists common categories; source data may include additional categories.
| Category | Description |
|---|---|
| List | Configuration/setup records (accounts, items, locations) |
| Transaction | Financial documents (sales orders, invoices, payments) |
| Entity | People/companies (customers, vendors, employees) |
| Activity | Calendar/task records (events, tasks, phone calls) |
| Subrecord | Embedded within parent records (address, inventory detail) |
| Script | Script definition records. Managed via SDF; not direct CRUD |
| Custom | User-defined custom records and custom transaction types |
| Type | Description | Example Fields |
|---|---|---|
text |
Single-line text | memo, externalid |
textarea |
Multi-line text | message |
select |
Dropdown selection | entity, location |
multiselect |
Multiple selection | |
checkbox |
Boolean true/false | ismultishipto |
currency |
Currency amount | total, subtotal |
date |
Date value | trandate, duedate |
datetime |
Date and time | |
integer |
Whole number | quantity |
float |
Decimal number | rate |
email |
Email address | |
phone |
Phone number | phone |
url |
Web URL | url |
The following script types are managed via SDF and don't appear as searchable record types in records.json:
| Script Type | Why Not Listed | Where to Find Reference |
|---|---|---|
SDFInstallationScript |
Managed via SDF deploy.xml, not the UI record system |
netsuite-sdf-leading-practices SKILL.md (if the skill is available): template, context object, deploy.xml example |
See references/record-index.md for an alphabetical listing of all 272 records.
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。