Skip to main content
Glama

common-set-item-template-by-id

Change the template of a Sitecore content item by specifying its ID, enabling content restructuring while optionally mapping field values between templates.

Instructions

Sets the item template by the item's ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe ID of the item to set the template for.
templateYesThe path representing the template item.
fieldsToCopyNoThe key-value pairs map the old template fields to the new template fields. The key represents the old template field, and the value represents the new template field.
databaseNoThe database containing the item (defaults to the context database).

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ramseur/SitecoreMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server