New answers tagged powershell-extensions
0
votes
Find all the items and fields that have dropdown value not in selection list
This script will help you find items in Sitecore where dropdown values might be incorrectly carried over from the old site.
# Define parameters for the old and new sites
$oldSiteRoot = "/sitecore/...
1
vote
PowerShell script to delete the orphaned (Child) components inside a deleted parent component
Cleaning up orphaned renderings in Sitecore, especially when content editors remove parent components without also removing child renderings, can be a challenging task. This is particularly true when ...
1
vote
Import-Item now working on other directory files
It looking like you're trying to import and deserialize items from files using the Import-Item cmdlet in PowerShell. However, Import-Item isn’t a standard PowerShell cmdlet, so it might be part of a ...
1
vote
how to update some field value in sitecore using powershell?
To update the value of the "Campus" field in Sitecore, you need to modify the script to set the updated campus value back into the item and save the changes. Here's how you can modify your ...
3
votes
how to update some field value in sitecore using powershell?
Have you tried:
$item.'Campus' = $campus
1
vote
How to Retrieve Template IDs from a Folder Containing Image or File Field Types
Below modified script works for me.
$templateFolderPath = "/sitecore/templates/testfoldername"
$templateIds = @()
$templateFolderItem = Get-Item -Path $templateFolderPath
if ($...
Top 50 recent answers are included
Related Tags
powershell-extensions × 485powershell × 76
sxa × 24
sitecore-client × 15
media-library × 13
sitecore-api × 10
presentation × 9
content-editor × 7
workflow × 7
publishing × 6
security × 5
installation × 5
templates × 5
scheduled-tasks × 5
sitecore-commerce × 4
sitecore-query × 4
content-migration × 4
sitecore-install-framework × 3
packages × 3
events × 3
docker × 3
azure-ad × 3
tree-list × 3
xm-cloud × 3
xdb × 2