CreateSchema
Generates a schema file for a specified Salesforce table, defining field structure and types.
CreateSchema
データモデル内の既存のテーブルまたはビューからローカルスキーマファイル(.rsd)を作成します。
スキーマファイルは、このプロシージャが実行されると、Location 接続プロパティで設定されたディレクトリに作成されます。ファイルを編集してカラムを含めたり除外したり、カラム名を変更したり、カラムのデータ型を変更したりできます。
本製品 はLocation を確認し、.rsd ファイルの名前がデータモデルのテーブルまたはビューに一致するかどうかを判断します。重複がある場合、スキーマファイルはデータモデル内のこのテーブルのデフォルトインスタンスよりも優先されます。既存のテーブルまたはビューに一致しないスキーマファイルがLocation に存在する場合、新しいテーブルまたはビューのエントリが本製品 のデータモデルに追加されます。
Input
| Name | Type | Description |
| TableName | String | Name of the Salesforce object or table for which the schema should be generated. This is required. |
| TableDescription | String | Optional description for the table. If omitted, a default description is auto-generated by the driver. |
| WriteToFile | String | Specifies whether to save the generated schema to a file. Defaults to 'true'. Set to 'false' to return schema data via FileStream or FileData instead. |
| FileName | String | Name of the file to save the generated schema to. For example: 'Accounts.rsd'. Required if WriteToFile is 'true'. |
Result Set Columns
| Name | Type | Description |
| Result | String | Indicates whether the schema creation operation was successful ('Success') or failed ('Failure'). |
| FileData | String | Base64-encoded content of the generated schema. Returned only when WriteToFile is 'false' and FileStream is not specified. |
| SchemaFile | String | Name or path of the generated schema file, confirming completion of the operation. |