3

* to get keyword Id using keyword value?*

2 Answers 2

3

Well, without giving too much of a solution, you will need to learn to use Core Service API. For that, hopefully, you already have a link to documentation. But in general, here is the high-level tasks which you need to code:

  1. get List of all CCategories in an (i guess) Publication. For this you will need to use Filters, to get them.
  2. Then for each category, get all the keywords in them. For this you can reference this question: https://stackoverflow.com/questions/12072275/how-to-get-the-keywords-inside-the-category
  3. and then use the standard filtering to match by title
3

Following Marko's example of not giving you the exact code, I can propose a different approach. You could utilize the TaxonomiesOwlFilterData class which returns the entire taxonomy in one response in the OWL format (which is basically an XML). That way you do not need to check keyword by keyword but instead search within the xml to find what you're looking for.

Your Answer

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

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