Publish Bulk Items in Sitecore using Sitecore Powershell Extensions

Every Sitecore site will have a different set of requirement and one of the requirement could be Publish Bulk Items in Sitecore. If you have the same requirement then you are at right place. :)

Publish Bulk Items In Sitecore

 

This post is in accordance with my previous two posts:

  1. Export Sitecore Items
  2. Update Sitecore Items

This might be the case for your requirement, first Export Sitecore Items, then it could be Update Sitecore Items in bulk and then I’m sure there would be the third one to Publish Sitecore Items in Bulk.

I’ve written Sitecore Powershell script which would do the job easier. In Update Sitecore Items — I provided the sample file, the same file you can use for Bulk Publish.

Sample CSV File: pt_Publish_Sitecore_Items (I generally prefix the file with language so that we know which language version items are getting published)

Below script will first ask the user for the CSV File. Then it will ask for Target Database to publish Sitecore Items — The reason for providing this option is because every Sitecore site have the staging environment and it’s always better to verify the changes. So you can accordingly select the target database and after verifying you can push it Live. Once processing is done file will be deleted. Publish Mode is set to Smart.

Note, Sample CSV File has two important columns which are required by this script, ItemPath and Language — Items will be published in the provided language.

Execute the Script in Sitecore PowerShell Console or PowerShell ISE

You can modify the script as per your need! — If you want my help you can anytime shout me loud by commenting below! 😉

Screenshots:

Upload-CSV-File

Select-Target-Database

Output

Bulk Publishing

Reference:

http://www.sitecorenutsbolts.net/2015/12/14/Multi-Item-Publish-with-Sitecore-Powershell-Extensions/

If you don’t have Sitecore Powershell and still looking for some solution, you can read the post by Nilesh Thakkar:

http://sitecorejourney.nileshthakkar.in/2016/12/publish-bulk-items-in-sitecore-using.html

Happy Sitecoring! :)

Share

Leave a Reply

Your email address will not be published. Required fields are marked *