common-set-item-template
Set a Sitecore item's template by ID or path, and optionally map old template fields to new template fields to preserve content.
Instructions
Sets the item template.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The ID of the item to set the template for. Supply this or path. | |
| path | No | The path of the item to set the template for. Supply this or id. | |
| database | No | Database to resolve an id against (default master). | |
| template | Yes | The path representing the template item. | |
| fieldsToCopy | No | The 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. |