Am new to cms tridion, I want to get the tcm id by component name and also I want to retrieve all the components in a given folder in java.

Thanks, Kiran

  • I am writing a stand alone java class to search a component by its name
    – Kiran505
    Commented Jul 7, 2016 at 10:35
  • Content Management back-end
    – Kiran505
    Commented Jul 7, 2016 at 10:55
  • 1
    Instead of adding additional information as comments, edit the question itself. Also, tag your question with the version of tridion you are using.
    – Hiren Kaku
    Commented Jul 7, 2016 at 15:12

2 Answers 2


Welcome to the Tridion community!

There are a number of APIs available in the system, each with a different purpose/usage scenarios. If you're working on the CM side (purely content management), then explore the Core Services API, which is a WCF web service that you can bind to using any number of java clients that can consume WCF. This would allow you to connect to the CMS, look at the components within a folder or search for a component by name.

If you're working with published content, I.e. Content. Delivery and/or the Web app itself, then explore the Content Delivery API, which comes in 2 flavors: a native java API or a Rest Odata API, both work off the published content database known as the Broker.

Start by reading the product docs and then branch out into numerous examples in community blogs and this site. Note: most of the samples for Tridion 2011Sp1+ should be close to, if not the same as for Web 8.


The coreservice is a WCF service, using Java is not the easiest - but definitely possible. I would recommend starting with reading:

Now, finding a component is always easier if you know the TCM URI or the WebDAV Url of that object - just call client.Read("TcmUri or WebDAVUrl") and you're golden. If you don't know any of those, and only have the title, your 2nd best option is then to use Search. Here's another link that can help: Search in multiple folders via core service.

This should help you get started, come back for more questions!

  • Thanks nuno :) this information helped me to get started. in my case I don't have tcmuri. I have component name. now I need to find out the tcm uri from the component name. trying hard from long time but no luck yet. can you help me here..
    – Kiran505
    Commented Jul 7, 2016 at 13:23
  • Have you tried using search, as I suggest?
    – Nuno Linhares
    Commented Jul 7, 2016 at 14:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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