Showing posts with label spe. Show all posts
Showing posts with label spe. Show all posts

Tuesday, June 27, 2023

Sitecore Powershell to search a keyword in all item fields

Hi All,

These days, there is one requirement for my project, as we are using external links that have different urls for dev, QA, UAT, and live. So to identify the fields that have a specific string url, we need to identify the external links according to the environment. For that, I started the investigation and found one blog very useful.

https://www.logicalfeed.com/posts/1222/powershell-script-to-search-a-keyword-in-all-items-in-sitecore 

But there is one problem in that string what we need to search is hardcoded, so I used Sitecore interactive dialogs.

After a small effort I created the script which you can get from below url:
https://github.com/gaurarun777/SitecorePowerShell/blob/main/PowerShellKeyWordSearch-1.ps1

Which will help you to search a specific string from a certain path. You need to supply the string that needs to be searched and the item path into the interactive dialog box.



In the future, I will try to make it more interactive, suggestions are really appreciated.

I hope you enjoy this Sitecore blog. Stay tuned for more Sitecore related articles.

Till that happy Sitecoring :)

Please leave your comments or share this article if it’s useful for you.


Tuesday, March 14, 2017

Watchout! You are in the web db!

Watchout! You are in the web db!: Based on a vent by @cassidydotdk on the Sitecore Slack chat the other day, we were all laughing about the (multiple)times when we forget that we have switched to teh web database to check something ou

Wednesday, March 1, 2017

Right Click Unlock Item with Sitecore PowerShell Extensions

Hi All,

During working with Sitecore, most users face the issue of not being able to unlock the Sitecore item if they are not admin users. To overcome this issue, we can use the PowerShell tool, which is a powerful tool if we use it efficiently.

Thanks Richard Seal for such a lovely blog 

 

$item = Get-Item .
$item.Locking.Unlock()
Close-Window

I hope you enjoy this Sitecore blog. Stay tuned for more Sitecore related articles.

Till that happy Sitecoring :)

Please leave your comments or share this article if it’s useful for you.