Console icon indicating copy to clipboard operation
Console copied to clipboard

Set-Rendering function does not change older item versions

Open JohannesGoetz opened this issue 5 years ago • 2 comments

Expected Behavior

The Set-Rendering function sets the rendering in the Presentation details of the version the Item in the -Item Parameter.

Actual Behavior

Only the latest version in the selected language can be changed. A -Version Parameter is not available.

Steps to Reproduce the Problem

Version 6.1.1

  • [ ] Use the Set-Rendering function and provide an Item in a Version, which is not the latest one in the provided language, in the -Item parameter. Also, set the -FinalLayout option
  • [ ] Run the script
  • [ ] The rendering will not be changed in the provided version

JohannesGoetz avatar Sep 21 '20 16:09 JohannesGoetz

For this you will want to make sure that when you call get-item or get-childitem that you specify which versions.

michaellwest avatar Sep 21 '20 16:09 michaellwest

@JohannesGoetz - Can you provide a script where you're providing an older version to the command? The command just updates the relevant rendering field on the Item provided, so if given the right version it should update that one.

AlexKasaku avatar Sep 21 '20 19:09 AlexKasaku