New answers tagged publishing
0
votes
How to publish an item to multiple targets at a time, by using powershell script
If you go to https://doc.sitecorepowershell.com/appendix/common/publish-item, it has an exact example that shall serve your purpose.All you need to do is put the targets in an array (rather than ...
0
votes
How to publish an item to multiple targets at a time, by using powershell script
If publishing from content editor wors fine then it should also work from powershell . You can use next powershell code (you need to change item path) :
$targets = [string[]]@('web','internet')
...
1
vote
Accepted
How to publish an item to multiple targets at a time, by using powershell script
For this to work, you need to provide target attribute in publish command.
It accepts list so as you have multiple target then provide them accordingly.
e.g.
get-item '/sitecore/content/path' | ...
Top 50 recent answers are included
Related Tags
publishing × 330publishing-service × 37
caching × 19
sitecore-client × 14
content-editor × 14
workflow × 11
events × 10
pipelines × 9
event-queue × 9
sxa × 8
azure × 8
versions × 8
media-library × 7
indexing × 7
sql-database × 6
experience-editor × 5
powershell-extensions × 5
scaling × 5
content-delivery × 5
scheduled-tasks × 5
solr × 4
upgrade × 4
multilingual × 4
best-practices × 4
sitecore-commerce × 3