MCP Server for Microsoft SharePoint

Build 24.0.9300

CreateSchema

Generates a schema file for a specified SharePoint list, allowing manual customization of columns and metadata. Useful for integrating SharePoint lists with external data sources or applications.

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 server 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 server.

Input

Name Type Required Description
Table String True The name of the table for which the schema is being generated. Example: 'EmployeeRecords'.
TableDescription String False An optional description providing additional details about the table’s purpose or contents.
WriteToFile String False A Boolean value indicating whether the schema should be saved as a file. Defaults to 'true'. Set to 'false' to write the schema to FileStream or FileData.

Result Set Columns

Name Type Description
Result String Indicates whether the schema creation operation was successful. Returns 'Success' or 'Failure'.
SchemaFile String The name or location of the generated schema file, if WriteToFile is set to true.
Columns String The total number of columns detected in the table schema.
FileData String The schema file content encoded in base64 format. Only returned if WriteToFile is set to 'false' and FileStream is not used.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 24.0.9300