1

I want to create a new language version via Powershell (the item has no versions yet) but I'm not able to do so via Powershell... I'm not getting an error but the version is also NOT created

This is my snippet:

$path = "master:/sitecore/content/test"
$item = Get-Item -Path $path
Add-ItemVersion -Item $item -IfExist Append -TargetLanguage "fr-BE"

The item "sitecore/content/test" does exist but has no versions.

1

1 Answer 1

2

Never had issues adding version with pse. Usually going with Add-ItemLanguage directly :

Add-ItemLanguage -Path $path -Language "en" -TargetLanguage "fr" -IfExist Skip

1
  • This solution worked for me ! Many Thanks May 20, 2022 at 12:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.