Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SDL Tridion : How do I schedule a page to publish recurrently?

I have to schedule a page to publish automatically once a week. I don't see any out if the box feature to schedule it. How can this be achieved using the SDL Tridion 2011 APIs.

like image 468
user1729917 Avatar asked Oct 08 '12 20:10

user1729917


1 Answers

Your best bet would be to write a small command line or power shell script which uses the SDL Tridion Core Service, then schedule it to run using the Windows Task Scheduler. Once you have created a Core Service client (there are lots of examples here on SO), you can then call the publish method as follows:

_client.Publish(pageId, publishInstruction, targets, priority, readOptions);

If you need further details please download the CoreService API from the following URL and search for "ICoreService2011.Publish":

https://www.sdltridionworld.com/downloads/documentation/SDLTridion2011SP1/index.aspx

like image 66
Chris Summers Avatar answered Oct 24 '22 06:10

Chris Summers