London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Set "Ready to publish" programatically

Vote:
0

Is there a way to set "ready to publish" programatically? I tried setting isPendingPublish true but that didnt work.

Have anyone done this before? 

Thanks!

#146502
Mar 16, 2016 16:40
Vote:
0

Use IContentRepository with save method and use SaveAction.CheckIn. 

That should do it.

http://world.episerver.com/documentation/Class-library/?documentId=cms/9/5864AC72

#146509
Mar 16, 2016 18:57
Vote:
0

That worked! Thanks!

#146519
Mar 17, 2016 9:02
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.