CreateSchema
Generates a schema file for a specified Salesforce table, defining field structure and types.
ストアドプロシージャ固有の情報
Salesforce オブジェクトのスキーマファイル(.rsd)を生成します。オブジェクトのスキーマファイルを生成するには:
EXEC CreateSchema TableName='Account'
カスタムのテーブル説明を指定してスキーマファイルを生成するには:
EXEC CreateSchema TableName='Account', TableDescription='My custom description'
特定のパスにスキーマファイルを生成するには:
EXEC CreateSchema TableName='Account', FileName='C:\MyFolder\Account.rsd'
ディスクに書き込む代わりにスキーマをデータとして返すには:
EXEC CreateSchema TableName='Account', WriteToFile='false'
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'. |
| SOQL | String | 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. |