common-add-item-version
Creates a new language version of a Sitecore item from an existing source language. Copies selected fields, can recurse into children, and skips items without a source version.
Instructions
Creates a version of the item in a new language based on an existing language version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The id of the item to add version for. Supply this or path. | |
| full | No | Return the unprojected .NET object graph. Very large (100,000+ chars/item); diagnostics only. | |
| path | No | The path of the item to add version for (e.g. /sitecore/content/Home). Supply this or id. | |
| fields | No | Extra Sitecore field names to include, e.g. ['Title']. Ignored when full is true. | |
| ifExist | No | Append | |
| recurse | No | Process the item and all of its children. | |
| database | No | Database to resolve an id against (default master). | |
| language | No | Language that will be used as source language. If not specified the current user language will be used. | |
| ignoredFields | No | List of fields that should not be copied over from original item. | |
| targetLanguage | No | Language that should be created. | |
| doNotCopyFields | No | Creates a new version in the target language but does not copy field values from the original language. | |
| ifNoSourceVersion | No | Skip |