CreateSchema
Generates a schema file for a specified table or view, providing a structural blueprint for data organization.
CreateSchema
Creates a local schema file (.rsd) from an existing table or view in the data model.
The schema file is created in the directory set in the Location connection property when this procedure is executed. You can edit the file to include or exclude columns, rename columns, or adjust column datatypes.
The component checks the Location to determine if the names of any .rsd files match a table or view in the data model. If there is a duplicate, the schema file will take precedence over the default instance of this table in the data model. If a schema file is present in Location that does not match an existing table or view, a new table or view entry is added to the data model of the component.
Input
Name | Type | Required | Description |
TableName | String | True | The name of the table or view for which the schema is being created. This parameter determines the structure to be exported. |
FileName | String | False | The complete file path and name where the schema file will be saved. For example, 'C:\\Users\\User\\Desktop\\D365\\Contents.rsd'. |
Result Set Columns
Name | Type | Description |
FileData | String | The schema file data, encoded in Base64, if neither FileName nor FileStream inputs are provided. This allows the schema to be retrieved directly as a Base64-encoded string. |
Result | String | Indicates whether the schema was successfully generated and downloaded. Returns true for success and false otherwise. |