CreateSchema
Generates a schema file for a specified table or view in Salesforce Marketing Cloud. The schema file describes field names, data types, and relationships, supporting integration or documentation purposes.
CreateSchema
データモデル内の既存のテーブルまたはビューからローカルスキーマファイル(.rsd)を作成します。
スキーマファイルは、このプロシージャが実行されると、Location 接続プロパティで設定されたディレクトリに作成されます。ファイルを編集してカラムを含めたり除外したり、カラム名を変更したり、カラムのデータ型を変更したりできます。
本製品 はLocation を確認し、.rsd ファイルの名前がデータモデルのテーブルまたはビューに一致するかどうかを判断します。重複がある場合、スキーマファイルはデータモデル内のこのテーブルのデフォルトインスタンスよりも優先されます。既存のテーブルまたはビューに一致しないスキーマファイルがLocation に存在する場合、新しいテーブルまたはビューのエントリが本製品 のデータモデルに追加されます。
Input
| Name | Type | Required | Description |
| TableName | String | True | Specifies the name of the table or view for which the schema file should be generated. This value determines the structure that the stored procedure exports into the resulting schema. |
| FileName | String | False | Specifies the full file path and the name of the schema file to generate. The path must include the parent directory configured in the Location property, the directory that corresponds to the schema type such as SOAP, and the .rsd file name that represents the target table or view. For example, a valid Windows path might be 'C:\\Users\\User\\Desktop\\SalesforceMarketingCloud\\SOAP\\table.rsd'. |
Result Set Columns
| Name | Type | Description |
| Result | String | Returns a value of 'Success' when the schema is generated without errors. It returns a value of 'Failure' when the stored procedure encounters a problem during schema creation. |
| FileData | String | Specifies the generated schema that is returned as a Base64-encoded string. This value is provided only when neither the FileName nor FileStream input is supplied, and it enables callers to capture the schema directly within the API response. |