CreateSchema
Generates a schema file for a specified Salesforce table, defining field structure and types.
CreateSchema
データモデル内の既存のテーブルまたはビューからローカルスキーマファイル(.rsd)を作成します。
スキーマファイルは、このプロシージャが実行されると、Location 接続プロパティで設定されたディレクトリに作成されます。ファイルを編集してカラムを含めたり除外したり、カラム名を変更したり、カラムのデータ型を変更したりできます。
本製品 はLocation を確認し、.rsd ファイルの名前がデータモデルのテーブルまたはビューに一致するかどうかを判断します。重複がある場合、スキーマファイルはデータモデル内のこのテーブルのデフォルトインスタンスよりも優先されます。既存のテーブルまたはビューに一致しないスキーマファイルがLocation に存在する場合、新しいテーブルまたはビューのエントリが本製品 のデータモデルに追加されます。
Input
| Name | Type | Accepts Output Streams | Description |
| TableName | String | False | Name of the Salesforce object or table for which the schema should be generated. This is required. |
| TableDescription | String | False | Optional description for the table. If omitted, a default description is auto-generated by the driver. |
| WriteToFile | String | False | 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 | False | Name of the file to save the generated schema to. For example: 'Accounts.rsd'. Required if WriteToFile is 'true'. |
| FileStream | String | True | Optional output stream to write the schema content to, used when WriteToFile is 'false' and data should not be saved as a physical file. |
| SOQL | String | False | Deprecated. This input is only used to generate the schema (RSD) file for the specified table and has no effect on subsequent queries against the generated table. It will be removed in the next version. |
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. |