2

How to publish a page using Tridion Core Service client in SDL Web 8.5 version?

Code example would be better

New contributor
Tridion New User is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
5

Well, code sample for publish is: enter image description here

I added a screenshot on purpose so that you will need to retype it and see what IntelliSense does and what overload methods do. :) What is more important is that you know what each of the parameter means.

So to publish an item you need following:

  • you need an array of items you want to publish. Here you need to provide an array of IDs. If you publish a single item, you still must cast it to array.
  • you need publish instructions. Like when you want it rendered, what you want rendered and when you want it rendered or deployed. Code sample for that is something like: enter image description here
  • You need target where you want something published (publication target, target type or purpose). For understanding this, please check legacy and new publishing models for 8.5. This is normaly staging or live in your case.
  • and you need priority (Low, Normal or High)

So please, don't retype the code, try to write it by reading Core Service API. :D

Your Answer

Tridion New User is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.