I wonder when I copy final renderings, what does happen with the datasource, does this will be copy also datasource or not?
New-UsingBlock (New-Object Sitecore.Security.Accounts.UserSwitcher $elevatedUser) {
function Copy-FinalRenderings {
param(
[Item]$baseLangItem,
[Item]$newLangItem
)
if($baseLangItem.TemplateID -in $templateIds)
{
$newLangItem.Editing.BeginEdit()
$newLangItem.Fields["__Final Renderings"].Value = $baseLangItem.Fields["__Final Renderings"].Value
$newLangItem.Editing.EndEdit()
}
}