CreateSchema
Produces a schema file outlining the structure of the specified table or view, supporting data analysis and integration.
CreateSchema
データモデル内の既存のテーブルまたはビューからローカルスキーマファイル(.rsd)を作成します。
スキーマファイルは、このプロシージャが実行されると、Location 接続プロパティで設定されたディレクトリに作成されます。ファイルを編集してカラムを含めたり除外したり、カラム名を変更したり、カラムのデータ型を変更したりできます。
本製品 はLocation を確認し、.rsd ファイルの名前がデータモデルのテーブルまたはビューに一致するかどうかを判断します。重複がある場合、スキーマファイルはデータモデル内のこのテーブルのデフォルトインスタンスよりも優先されます。既存のテーブルまたはビューに一致しないスキーマファイルがLocation に存在する場合、新しいテーブルまたはビューのエントリが本製品 のデータモデルに追加されます。
Input
| Name | Type | Description |
| TableName | String | The name of the table or view for which the schema will be generated. Provide the exact name as it appears in NetSuite. |
| FileName | String | The file name for the generated schema. If no file path is included, the file will be generated in 'Location property' + 'SuiteQL' + 'FileName'. For example, if FileName is set to 'table.rsd', then the file will be generated in '%APPDATA%\\CData\\NetSuite Data Provider\\Schema\\SuiteQL\\table.rsd' |
Result Set Columns
| Name | Type | Description |
| FileData | String | The binary content of the generated schema file, returned only if FileName and FileStream are not provided. |
| Result | String | Indicates whether the schema generation was successful or failed. |
Produces a schema file outlining the structure of the specified table or view, supporting data analysis and integration.
CreateSchema
データモデル内の既存のテーブルまたはビューからローカルスキーマファイル(.rsd)を作成します。
スキーマファイルは、このプロシージャが実行されると、Location 接続プロパティで設定されたディレクトリに作成されます。ファイルを編集してカラムを含めたり除外したり、カラム名を変更したり、カラムのデータ型を変更したりできます。
本製品 はLocation を確認し、.rsd ファイルの名前がデータモデルのテーブルまたはビューに一致するかどうかを判断します。重複がある場合、スキーマファイルはデータモデル内のこのテーブルのデフォルトインスタンスよりも優先されます。既存のテーブルまたはビューに一致しないスキーマファイルがLocation に存在する場合、新しいテーブルまたはビューのエントリが本製品 のデータモデルに追加されます。
Input
| Name | Type | Description |
| TableName | String | The name of the table or view for which the schema will be generated. Provide the exact name as it appears in NetSuite. |
| FileName | String | The file name for the generated schema. If no file path is included, the file will be generated in 'Location property' + 'SuiteQL' + 'FileName'. For example, if FileName is set to 'table.rsd', then the file will be generated in '%APPDATA%\\CData\\NetSuite Data Provider\\Schema\\SuiteQL\\table.rsd' |
Result Set Columns
| Name | Type | Description |
| FileData | String | The binary content of the generated schema file, returned only if FileName and FileStream are not provided. |
| Result | String | Indicates whether the schema generation was successful or failed. |