common-add-item-version-by-id
Create a new language version of a Sitecore content item by copying from an existing version. Specify source and target languages, handle children recursively, and control field copying behavior.
Instructions
Creates a version of the item (by its id) in a new language based on an existing language version.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The id of the item to add version for. | |
| language | No | Language that will be used as source language. If not specified the current user language will be used. | |
| targetLanguage | No | Language that should be created. | |
| recurse | No | Process the item and all of its children. | |
| ifExist | No | Append | |
| ifNoSourceVersion | No | Skip | |
| doNotCopyFields | No | Creates a new version in the target language but does not copy field values from the original language. | |
| ignoredFields | No | List of fields that should not be copied over from original item. | |
| database | No | The database containing the item (defaults to the context database). |