CreateSchema
Produces a schema definition file for a specified table or view within the Vault data model. The generated schema includes column names, data types, and metadata that can be used for integration, documentation, or tooling purposes.
CreateSchema
データモデル内の既存のテーブルまたはビューからローカルスキーマファイル(.rsd)を作成します。
スキーマファイルは、このプロシージャが実行されると、Location 接続プロパティで設定されたディレクトリに作成されます。ファイルを編集してカラムを含めたり除外したり、カラム名を変更したり、カラムのデータ型を変更したりできます。
本製品 はLocation を確認し、.rsd ファイルの名前がデータモデルのテーブルまたはビューに一致するかどうかを判断します。重複がある場合、スキーマファイルはデータモデル内のこのテーブルのデフォルトインスタンスよりも優先されます。既存のテーブルまたはビューに一致しないスキーマファイルがLocation に存在する場合、新しいテーブルまたはビューのエントリが本製品 のデータモデルに追加されます。
Input
| Name | Type | Required | Description |
| TableName | String | True | Specifies the name of the target table or view within Veeva Vault for which the schema definition will be created. This name should exactly match the object identifier used in the Vault database. |
| FileName | String | True | Defines the full file system path, including the filename, where the generated schema file will be saved. The file typically uses the .rsd extension (for example, 'C:\\Users\\User\\Desktop\\VeevaVault\\tablename.rsd'). |
Result Set Columns
| Name | Type | Description |
| Result | String | Indicates the execution status of the schema generation process. Returns either 'Success' if the schema was created and saved correctly, or 'Failure' if the operation encountered an error. |