Skip to main content

New answers tagged

0 votes

How to delete random sitecore items based on the path along with removing references using powershell

I created a blog to identify unused media items on Sitecore. You can refer to this blog to identify and remove unused Sitecore items. https://chukkaprasad.wordpress.com/2024/06/14/how-to-find-unused-...
CHUKKA PRASAD's user avatar
1 vote
Accepted

How to update the checkbox field value in Sitecore Powershell Extensions?

When you read checkbox Field from CSV file. You need to convert it to Boolean first then you can assign/update the checkbox field value using powershell. I'm assuming in your excel file IsChecked ...
Praveen Sharma's user avatar
0 votes

Powershell Script to update Date

To read date Field from CSV file. You need to convert it to date format and then update the sitecore date field. You need to update time format(dd-MM-yyyy HH:mm:ss) below same as the format you read ...
Hanish Jain's user avatar
0 votes

How to update the checkbox field value in Sitecore Powershell Extensions?

Inside Powershell, $true/$false are the boolean values that need to be assigned to set/unset checkbox field value in the above script. Therefore the value of $row.IsChecked in your case, must be ...
ckhanna's user avatar
  • 1,648
0 votes

How to update the checkbox field value in Sitecore Powershell Extensions?

You could use this code to update value of checkbox. Here is a sample code. $item = Get-Item -Path "master:/sitecore/content/Home/Sample" $item.Editing.BeginEdit() $item.Fields["...
Sumit Bhatia's user avatar
  • 5,193
0 votes

How to perform rebuild link database from outside of sitecore server on a remote desktop

To perform the rebuild of the link database in Sitecore from a remote desktop, you can utilize the Sitecore PowerShell Extensions (SPE) Remoting capabilities: Step 1: Install the SPE Remoting Module ...
NIKITA VASHISHT's user avatar
0 votes

Powershell script to update personalization rule

Below is the PowerShell script to achieve it : Import-Module -Name SitecorePowerShellExtensions $rootPath = "sitecore/content/Home" $renderingName = "YourRenderingName" $...
NIKITA VASHISHT's user avatar
2 votes

How to get Sitecore item fields from item using powershell?

To get Sitecore item fields from item using powershell $itemPath = "master:/sitecore/content/Home" $language = "en" $database = "master" # Get the item ...
Manoj's user avatar
  • 453
2 votes

How to get Sitecore item fields from item using powershell?

To get all the fields of an item use this. PS master:\> Get-ItemField -Path master:\content\home To get all the fields of an item using standard fields use this. PS master:\> Get-Item master:\...
Sumit Bhatia's user avatar
  • 5,193
1 vote
Accepted

How to get Sitecore item fields from item using powershell?

You can use Get-ItemField function to get all item fields and loop through them as below to read them. $item = Get-Item -Path "master:" -ID "{{Item_ID}}" $fields = $item | Get-...
ckhanna's user avatar
  • 1,648
0 votes
Accepted

How to tell if the item language is the fallback language or the regular language version

Thank you for your posts. I tried many different ways. But many cases did not work. The following steps worked. # Iterate over all languages of the item foreach ($language in $item.Languages) { # ...
CHUKKA PRASAD's user avatar
2 votes

How to tell if the item language is the fallback language or the regular language version

You can check item is a fallback item, through reading IsFallback property available on the item as below. $item = Get-Item -Path "master:" -ID "{{Item_ID}}" Write-Host $item....
ckhanna's user avatar
  • 1,648
1 vote

How to tell if the item language is the fallback language or the regular language version

Language fallback can be checked by the Item.IsFallback property, which returns true if the item is a fallback item. I didn't test it in Powershell but you can try it by the IsFallback property.
Gaurav Agarwal's user avatar
0 votes

How to perform rebuild link database from outside of sitecore server on a remote desktop

You can download SPE and SPE Remoting module from the below location. https://github.com/SitecorePowerShell/Console/releases SPE module needs to be installed on the CM server and SPE Remoting needs to ...
ckhanna's user avatar
  • 1,648

Top 50 recent answers are included